exec($sql); echo "Migration '001_create_users_table.sql' applied successfully.\n"; } else { echo "Migration file not found.\n"; } } catch (PDOException $e) { die("Migration failed: " . $e->getMessage() . "\n"); } } run_migrations();