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