This commit is contained in:
lizandrogd
2026-01-21 02:34:23 -05:00
parent b1961f0116
commit edfa5f68d9
8 changed files with 220 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_paused_until'");
if ($col) {
echo "Column bot_paused_until already exists\n";
exit(0);
}
try {
$db->query("ALTER TABLE users ADD COLUMN bot_paused_until DATETIME NULL AFTER on_hold");
echo "Added column bot_paused_until\n";
} catch (Exception $e) {
echo "Failed to add bot_paused_until: " . $e->getMessage() . "\n";
exit(1);
}