fix: migrate boolean columns to tinyint(1)

These columns were previously tiny ints without the (1) display width or regular ints, or smallints. They should all be tinyint(1).
This commit is contained in:
Roardom
2025-02-17 08:22:54 +00:00
parent ddd9ce7220
commit b2e29cfcf0
31 changed files with 143 additions and 58 deletions

View File

@@ -96,7 +96,7 @@ class ModerationController extends Controller
switch ($request->status) {
case Torrent::APPROVED:
// Announce To Shoutbox
if ($torrent->anon === 0) {
if (!$torrent->anon) {
$this->chatRepository->systemMessage(
\sprintf('User [url=%s/users/', config('app.url')).$torrent->user->username.']'.$torrent->user->username.\sprintf('[/url] has uploaded a new '.$torrent->category->name.'. [url=%s/torrents/', config('app.url')).$id.']'.$torrent->name.'[/url], grab it now!'
);