Working with Migration Scripts and Branching in SVN/SSC
muaddba
Posts: 18
We're using an SVN repository.
If I understand the documentaiton correctly, to branch in SSC/SVN, you copy the repository folder and link your DB to the new branch location.
Once I am done with my branch, to merge my changes back in, I am supposed to unlink my DB from the branch and re-link it to the trunk, and commit changes there.
It looks like this will require me to re-create any migration scripts I have made in the process of working on my branch, because those migration scripts are not going to be in the trunk, and I will no longer be connected to the repo branch where they exist.
Do I have this correct, or will they get incorporated somehow?
If I understand the documentaiton correctly, to branch in SSC/SVN, you copy the repository folder and link your DB to the new branch location.
Once I am done with my branch, to merge my changes back in, I am supposed to unlink my DB from the branch and re-link it to the trunk, and commit changes there.
It looks like this will require me to re-create any migration scripts I have made in the process of working on my branch, because those migration scripts are not going to be in the trunk, and I will no longer be connected to the repo branch where they exist.
Do I have this correct, or will they get incorporated somehow?
Comments
The way that SQL Source Control determines whether or not to apply migrations scripts depends on the extended properties that it creates in the new database after doing the "get latest".
So you may want to check the database after the branching is done and see if the extended property specifying the migrtations location is set:
I tagged 2 releases, release 1 and release 2, in SVN (which is essentially just making a copy of both the Schema folder and the Migration Scripts folder).
I then did a compare of these two, but because the migration script was added somewhere in the intermediate steps between the final releases, SQL Compare doesn't seem to be picking it up.
The reason behind this is that we don't know how to migrate between branches. It's something we hope to look at soon.
David Atkinson
Product Manager
Red Gate
Product Manager
Redgate Software
http://www.red-gate.com/supportcenter/c ... _and_merge
Start me with the trunk, and I have a developer who needs to branch the code. What steps should we take, from development, to merging back to the trunk, to deploying to production, to get this to perform correctly and include the migration scripts?
Thanks,
Joe