T/F?:Unresolved conflicts in RedGate Source Control create migration scripts that even drops tables!
Sumanta
Posts: 12 Bronze 1
We lost a chunk of data in our QA environment and that led to this repro:
Unresolved conflicts in RedGate Source Control create BAD migration scripts that even drops tables!
scenario:
Table A has a schema conflict
I create a blank migration script and put in a data change for Table A.
I commit my change and push.
Result:
The .patch file has the table as not required, i.e. prepended with - .
When run, it drops the table.
Expected:
It should not let me commit if I have conflict on the table.
Can you confirm that this bug exists and can be reproduced on your side?
Unresolved conflicts in RedGate Source Control create BAD migration scripts that even drops tables!
scenario:
Table A has a schema conflict
I create a blank migration script and put in a data change for Table A.
I commit my change and push.
Result:
The .patch file has the table as not required, i.e. prepended with - .
When run, it drops the table.
Expected:
It should not let me commit if I have conflict on the table.
Can you confirm that this bug exists and can be reproduced on your side?
Tagged:
Answers
Can you confirm the full version number of your SQL Source Control?
We appreciate if you can come up with a reproduction and let us know the steps.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
As per the repro steps we are fairly certain of the original repro steps as our workarounds to ask developers to ensure they have no unresolved conflicts in RGSSC before they create migration scripts is working so far.
Thanks for your replies. I tried with the repo steps. SQL Source Control appears to allow me to commit a migration script for the table that is in conflict as well. However, it didn't drop the table and the migration script didn't do anything although it was committed successfully. I tested in 6.1.8 and 6.3.1.
Please let me know if I'm missing anything. Thanks!
Here is my test scripts:
Tianjiao Li | Redgate Software
Have you visited our Help Center?