by lastofus · 11y ago · 0 comments
* Put your schema/data migrations into .sql files as raw SQL
* Number the files from 0001 on
* Write a script to apply each migration file to the DB in order, recording the file name to a log table after successful application. Only apply migrations not found in the log table.
* Commit your .sql migration files along with the code it is tied to.