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