Multiple developers modifying the same object = lost of work
ducman
Posts: 26 Bronze 2
Using the below steps:
- Developer A modify stored procedure in their local db
- Developer B modify stored procedure in their local db
- Developer A commit and push the change (using git verbiage here)
- Developer B pull
- Developer B click "Deploy Project" within the SQL Change Automation window within VS2017.
Tagged:
Answers
This sounds like the expected behaviour - when you click "Deploy Project", the local development database will be updated to match the stored procedure in the project, which in this case will be the change made by Developer A.
If Developer B wants to preserve the change they made, they should import the change into the project before doing a pull. If the changes conflict, git will prompt the developer to address the conflicts.
RedGate Software Developer
How do one solve that?
Software Engineer, RedGate Software
There's got to be a way to do an "Import" and it determine that the object you are importing conflict with the object in the project which has not been deployed yet. I don't know what "Refresh" is doing, but if we can import without a refresh and write in the "detection" code. That would help a lot.
Software Engineer, RedGate Software