Comments
5 comments
-
Hi,
Thank you for your Forum Post.
My first thought on reading on your post, would be to simply set the Compare option to Ignore constraint Names and / or Ignore system named constraint names.
However, within Ready Roll, these options are by default turned off to ensure deployment reliability. See the Unsupported Options section in this help article:
https://documentation.red-gate.com/rr1/key-concepts/configuring-comparison-script-generation-options
Alternatively you can create your own Pre and Post Deployment scripts using your code template to handle auto-generated constraint names:
https://documentation.red-gate.com/rr1/key-concepts/include-scripts
Many Thanks
Eddie
-
Honestly, what to do here is actually fix this as a part of build and fail the build if the constraint isn't named with doso standard. This for a couple things. Developers actively consider the constraint more and you also ensure no duplicate constraints get generated by using a standard
That being said, it would be nice for SCA to generate these according to some pattern and offer to fix your dev db -
Hi
Any workaround to this problem.
Thanks
Gill -
There is no workaround here. The solution is to name your constraints. They should be consistently named in all environments to ensure you can alter/drop them easily.
-
ok, Thanks wayOutwest.
Add comment
Please sign in to leave a comment.
Would it be possible to get ReadyRoll to generate code like this at least when it detects auto-generated constraint names? Also for primary keys it would be appreciated. (our template code looks different for primary keys)