This commit is contained in:
lizandrogd
2026-01-21 02:45:59 -05:00
parent edfa5f68d9
commit 845762f916
10 changed files with 207 additions and 8 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
require_once __DIR__ . '/../config/config.php';
$db = Database::getInstance();
$col = $db->fetch("SHOW COLUMNS FROM users LIKE 'bot_enabled'");
if ($col) {
echo "Column bot_enabled already exists\n";
exit(0);
}
try {
$db->query("ALTER TABLE users ADD COLUMN bot_enabled TINYINT(1) NULL DEFAULT 1 AFTER bot_paused_until");
echo "Added column bot_enabled\n";
} catch (Exception $e) {
echo "Failed to add bot_enabled: " . $e->getMessage() . "\n";
exit(1);
}