Change to CHECK constraint not detected for commit
rpresser
Posts: 11
I altered a CHECK constraint to add one more legal value for the column:
ALTER TABLE [dbo].[ACLs] DROP CONSTRAINT [CK__ACLs__TargetType__54A177DD]
ALTER TABLE [dbo].[ACLs] WITH CHECK ADD CHECK (([TargetType]='Brand' OR [TargetType]='ContentPage' OR [TargetType]='Product' OR [TargetType]='Category' OR [TargetType]='Site' OR [TargetType]='Subscriber' OR [TargetType]='Other'))
Then I went to commit changes. To my surprise nothing was detected as having changed.
SQL Server 2008 R2, Express Edition
SQL Source Control 3.0.5.7, Standard Edition
ALTER TABLE [dbo].[ACLs] DROP CONSTRAINT [CK__ACLs__TargetType__54A177DD]
ALTER TABLE [dbo].[ACLs] WITH CHECK ADD CHECK (([TargetType]='Brand' OR [TargetType]='ContentPage' OR [TargetType]='Product' OR [TargetType]='Category' OR [TargetType]='Site' OR [TargetType]='Subscriber' OR [TargetType]='Other'))
Then I went to commit changes. To my surprise nothing was detected as having changed.
SQL Server 2008 R2, Express Edition
SQL Source Control 3.0.5.7, Standard Edition
Comments
Redgate Software
It appears you're correct. When I returned to it just now, it was marked as needing committing.
Redgate Software