IssueRaiser

If one of the many schema migration solutions out there doesn't work for you, hacking one together is simple enough: * Put your schema&#...

If one of the many schema migration solutions out there doesn't work for you, hacking one together is simple enough: * 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.

Posted by lastofus on Jul 20, 2015, 5:25 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,500 issues0 comments

hackernews (E-commerce)

If one of the many schema migration solutions out there doesn't work for you, hacking one together is simple enough: * Put your schema&#...

lastofusJul 20, 2015, 5:25 PM

If one of the many schema migration solutions out there doesn't work for you, hacking one together is simple enough: * 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.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue