visual studio - Azure Sql database schema missing constraints after schema compare -
i created blank sql database in azure.
from visual studio 2017, performed schema compare, , updated blank azure database schema. there no errors didn't check same.
i setup replication , replicated data fine.
upon performing schema compare, discovered foreign key constraints missing, along default values , indexing.
it appears initial snapshot taken replication not replicate constraints , default values, due entity replication being done in arbitrary order; these constraints cause errors.
after removing seed column not replication using
alter table [dbo].[columnname] alter column id drop not replication;
i schema compare re-apply constraints , default values.
Comments
Post a Comment