exec($sql); echo "Migration applied successfully.\n"; } catch (Exception $e) { echo "Error applying migration: " . $e->getMessage() . "\n"; }