Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you know any good Database Schema Migration tool?

I'm currently writing a V2 of application, beyond the code change, some improvements have been done in the database as well as new data (columns/tables).

Now, I need to migrate my V1 data to my V2 application.

Things I need to do is map field in V1 database to field in V2 database, sets default for field that didn't exist in V1, transform DATA TYPE from V1 to V2 (like UNIX_TIMESTAMP to DATETIME).

It is a MySQL to MySQL data migration, so I don't care much about Database Conversion.

Any idea of any tools? Or Will I need to write it myself?

like image 685
JohnT Avatar asked Mar 21 '26 20:03

JohnT


1 Answers

Set up a V1 system, do the migration by hand (I mean in SQL console), log your commands - the captured commands is cca. the migration script.

like image 166
ern0 Avatar answered Mar 24 '26 08:03

ern0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!