Table primary keys are dropped
mtran
Posts: 34
When I ignore Indexes, the primary keys are dropped after syncing the table schema.
I have a table with 5 primary keys. It is initially there before the sync, but they are gone after syncing.
Please let me know if this is a bug and if theres a workaround for now.
Thanks
I have a table with 5 primary keys. It is initially there before the sync, but they are gone after syncing.
Please let me know if this is a bug and if theres a workaround for now.
Thanks
Comments
I'm sure that the problem lies with not setting your options in all of the right places. There are two places where you can specify the options used in the comparison, one on the Register method, and the second on the BuildFromDifferences method. If you omit the second set of options, or use the default, the keys will be compared and synchronized. Please see our code samples for an example.
How come when I use the UI, it does not show any differences in the table structure but the primary keys are not set in the destination database?
I do not see one for keys. There is Foreign keys but no primary keys.
This has never happened before though. Previous versions did not remove primary keys.
I believe there is a max of 200 indexes that can by synced. We have run into this previously where it will error if there are more than 200 indexes. I think that was the reason why we ignored indexes during syncing.