How can we help you today? How can we help you today?
MikielAgutu
Hello Monday Sorry you're having issues using SQL Change Automation. There are a couple of things you could try here. First, instead of importing changes one by one, can you try to manually write a migration script that performs the required operations in the correct order? If that doesn't work, you may need to alter settings that control the order in which SQL Change Automation deploys scripts. From the documentation page: 'By default deployment order is determined by file path, taking into account both folder path and file name. The file name must always start with a numeric prefix. To adjust the order of deployment, simply change the file's numeric prefix. If two migrations have the same number, then the rest of the filename will be used as the tie-breaker.' You can also configure the order of deployment with Migration Grouping, here. If you're still not having any luck, then Pre & Post-Deployment Scripts might help, as you said. In order to ensure the Pre/Post scripts are only executed in certain environments you'll have to manually write some SQL to check which DB context you're in. I don't recommend adding Pre/Post scripts, deploying the project, and then deleting them. Such an approach would lead to inconsistency if you source control your project. Hope that helps Mikiel / comments
Hello MondaySorry you're having issues using SQL Change Automation.There are a couple of things you could try here. First, instead of importing changes one by one, can you try to manually write a m...
0 votes
Hello Syagla It seems to me this is what is happening: Training_DB is in the state of branch HOTFIX-001. When you check out MASTER, Training_DB of course doesn't change. When you compare MASTER to Training_DB in SQLCompare, you see the differences between MASTER and HOTFIX-001. This is what you expect because Training_DB is in HOTFIX-001's state. However, when you look at the commit tab in SQL Source Control, you see nothing, despite being on MASTER. This is because SQL Source Control is designed such that all changes you make within SQL Source Control itself are displayed on the commit tab. Changes made outside of SQL Source Control are displayed on the 'Get Latest' tab. Therefore, the changes you're expecting ought to be on the Get Latest tab. In terms of when you'd use one over another: when developing database changes, you'll want to use SQL Source Control's commit and Get Latest tab. This will allow you to see which changes were made by you, and which were made externally (for instance, by another dev on your team). If you want to compare database schemas without reference to where the changes have come from, use SQL Compare. Thanks / comments
Hello SyaglaIt seems to me this is what is happening:Training_DB is in the state of branch HOTFIX-001. When you check out MASTER, Training_DB of course doesn't change.When you compare MASTER to Tra...
0 votes
Hello Kalo I've managed to reproduce this. I agree that it's somewhat confusing behavior and could be considered a bug. Can you put a ticket into Redgate support? That way we can keep track of this issue. Thanks / comments
Hello KaloI've managed to reproduce this. I agree that it's somewhat confusing behavior and could be considered a bug. Can you put a ticket into Redgate support? That way we can keep track of this ...
0 votes
Ducman, I'm sorry you're also having issues with SCA. As Andrea suggested, if you contact Redgate support we'll be better equipped to help you fix the problem. / comments
Ducman, I'm sorry you're also having issues with SCA. As Andrea suggested, if you contact Redgate support we'll be better equipped to help you fix the problem.
0 votes