Closed Driver86 closed 4 years ago
This files 00*.sql
should contain all sql commands necessary to migrate your database from one version to another. Unfortunately it is not created automatically.
My suggestion is every SQL command you use to change your database save in the file of the version. Create also the file for migrate down, and try to migrate UP and DOWN to make sure everything is fine.
If your database is MySQL and you are using Mysql Workbench tool to make changes on your database you can get the exact SQL commands to update your database.
How create migrate? For example, I made changes to the database. How do I create these files 00001.sql, 00002.sql?