Suppose I am developing a web application that uses a database, and I create a branch in my version control system which requires significant database changes.
Let's suppose I can't just use the normal trunk database as I often do for other branches, and in this case I actually need a new copy of the database for my branch.
Now, suppose I have another branch which requires yet another copy of the database. Should I just create two additional copies of the database? Is there a way I can branch my database? What do you all do?
I am using MySQL. I'd like to just use one instance of MySQL. Maybe there is a version of MySQL where I can do something like this with my DSN? Server=myServerAddress;Database=myDataBase?version=123;Uid=myUsername;Pwd=myPassword;
I know I can make forward-only changes, but I'd rather not leave old tables and fields lying around unnecessarily.