How can we help you today? How can we help you today?
AlexYates
How about this? Master = Production. Dev work is done on feature branches on development databases. (Ideally separate databases per feature/developer. Have you looked at SQL Provision?) On demand, plus on a periodic basis (e.g. at the weekend/at end of sprint) the following is automated: From your post above: 1) restore latest prod on the dev server as <DB>_FROM_PROD_<yyyMMdd_hhmmss> 2) rename the dev <DB> to <DB>_OLD 3) rename the <DB>_FROM_PROD_<yyyMMdd_hhmmss> db as <DB> My additions: 4) <DB> is compared with master in source control, any updates are automatically committed as "DRIFT CORRECTION". This should get all 3rd party and other updates on prod into master. When this occurs you may want to trigger some sort of notification to your team so they can review the updates. 5) master is automatically merged with all branches. If this merges nicely, wonderful, your development changes do not conflict with production drift. If this causes a merge conflict/build error, your developers need to review the problem before they can push to production. To release code to production: 1) Automatic check that production and master are in sync. If not, abort with a drift warning. Resolve drift by updating master and try again. 2) Master is merged into feature branch to ensure there are no merge conflicts. 3) Any automated tests are run to verify the merged code. (If you don't have tests, write some.) 4) Feature branch is merged into master. 5) Master is deployed to production. 6) Master is merged into any other feature branches. / comments
How about this?Master = Production.Dev work is done on feature branches on development databases. (Ideally separate databases per feature/developer. Have you looked at SQL Provision?)On demand, plu...
0 votes
There isn't a rollback migration feature. If it was me, I'd kill and respawn my database each time I switched branches. If you care about data, SQL Clone is your answer. / comments
There isn't a rollback migration feature.If it was me, I'd kill and respawn my database each time I switched branches.If you care about data, SQL Clone is your answer.
0 votes
I suspect you only have a licence for SQL Compare Standard. Comparing against source control / scripts folders is a SQL Compare Pro feature. [image] https://www.red-gate.com/products/sql-development/sql-compare/ / comments
I suspect you only have a licence for SQL Compare Standard. Comparing against source control / scripts folders is a SQL Compare Pro feature.https://www.red-gate.com/products/sql-development/sql-com...
0 votes