38676-vm/db/migrate_rules_minimal.php
Flatlogic Bot 12241ba85d Alpha V1.4
2026-02-26 08:28:54 +00:00

17 lines
602 B
PHP

<?php
require_once __DIR__ . '/config.php';
$db = db();
try {
// Ensuring the columns can hold multiple IDs
$db->exec("ALTER TABLE celestial_object_status_rules MODIFY COLUMN orbital_dominance TEXT NULL");
$db->exec("ALTER TABLE celestial_object_status_rules MODIFY COLUMN terrestrial_dominance TEXT NULL");
// Migration: ensure we handle ANY and IN/NOT IN appropriately
// Actually, I'll just use these two columns to store comma-separated IDs now.
echo "Columns modified successfully.\n";
} catch (PDOException $e) {
echo "Error: " . $e->getMessage() . "\n";
}