exec($sql); } echo "Migrations completed successfully.\n"; } catch (PDOException $e) { die("Migration failed: " . $e->getMessage()); }