exec($sql); echo "Migration completed successfully!\n"; // Verify tables $stmt = $pdo->query("SHOW TABLES"); $tables = $stmt->fetchAll(PDO::FETCH_COLUMN); echo "Current database tables:\n"; foreach ($tables as $t) { echo "- $t\n"; } } catch (\Exception $e) { echo "Migration failed: " . $e->getMessage() . "\n"; }