exec($sql); echo "Database schema created successfully." . PHP_EOL; } catch (PDOException $e) { die("Error creating schema: " . $e->getMessage()); } } // If this script is run directly, execute the migration. if (basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { migrate_001_initial_schema(); }