Welcome Guest, Not a member yet? Register   Sign In
How do you track your DB in source control?
#3

[eluser]Jamie Rumbelow[/eluser]
I've written a set of command-line scripts that handle database migrations for me, then I control the database schema through the migration system. Migration files consist of two functions, and 'up' and a 'down' function, which consist of their own PHP code that builds up the schema using CodeIgniter's DBForge library. That way I'm using the language and framework that I'll use to write my application to write my migrations.

It's all relatively simple; I'll write up a blog post about it and open-source the code at some point soon.


Messages In This Thread
How do you track your DB in source control? - by El Forum - 10-29-2009, 11:03 AM
How do you track your DB in source control? - by El Forum - 10-29-2009, 11:19 AM
How do you track your DB in source control? - by El Forum - 10-29-2009, 11:39 AM
How do you track your DB in source control? - by El Forum - 10-29-2009, 12:39 PM
How do you track your DB in source control? - by El Forum - 10-29-2009, 02:14 PM
How do you track your DB in source control? - by El Forum - 10-29-2009, 04:34 PM
How do you track your DB in source control? - by El Forum - 10-29-2009, 05:03 PM
How do you track your DB in source control? - by El Forum - 10-30-2009, 02:40 AM
How do you track your DB in source control? - by El Forum - 10-30-2009, 02:51 AM
How do you track your DB in source control? - by El Forum - 10-30-2009, 03:10 AM
How do you track your DB in source control? - by El Forum - 10-30-2009, 05:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB