<?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";
}