exec($sql); echo "Database migration completed successfully."; } catch (PDOException $e) { die("Database migration failed: " . $e->getMessage()); }