exec($statement); } } echo "Migration successful!\n"; } catch (Exception $e) { echo "Migration failed: " . $e->getMessage() . "\n"; }