You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I am encountering an issue where, after performing a schema migration and deprovisioning the old metadata, the new metadata is not being updated correctly. I have followed the process to deprovision, drop, and provision metadata, but the old stored procedures and triggers seem to remain, and the changes are not reflected as expected.
Here is the process I am following for schema migration:
Apply the update script on the client side.
Remove all metadata from the client side.
Update the database on the server side, which includes:
Updating the database schema.
Regenerating the scope info to reflect the new metadata.
Deprovisioning the old metadata.
Provisioning again with the new schema.
Sync the database on the client side to apply the changes.
I am also calling the following methods to remove metadata:
Despite following these steps, the metadata, especially the stored procedures, is not updating correctly, and I encounter the following error when syncing:
Procedure or function tbl_example_dbotestexample_update has too many arguments specified.
Steps to Reproduce:
Update the database schema.
Deprovision and provision metadata using the process above.
Attempt to sync the database and observe that old metadata is still present, causing the sync to fail with the error mentioned.
Expected Behavior:
The old metadata should be removed, and new metadata (such as stored procedures and triggers) should be correctly provisioned after a schema update, allowing sync to proceed without errors.
Actual Behavior:
The metadata does not update as expected after deprovisioning and provisioning, and old stored procedures and triggers remain, resulting in sync errors.
Question:
Am I missing any steps or doing something wrong in this process? Is there a different approach I should be using to ensure the metadata is correctly updated after a schema change?
Additional Context:
We are using SQL Server and leveraging change tracking for client-server synchronization. The goal is to ensure that after any database schema updates, the metadata is regenerated properly.
Environment:
Dotmim.Sync version: 1.0.2
Database provider: SQL Server
Synchronization mode: Web Architecture
Using Change Tracking
The text was updated successfully, but these errors were encountered:
Description:
I am encountering an issue where, after performing a schema migration and deprovisioning the old metadata, the new metadata is not being updated correctly. I have followed the process to deprovision, drop, and provision metadata, but the old stored procedures and triggers seem to remain, and the changes are not reflected as expected.
Here is the process I am following for schema migration:
I am also calling the following methods to remove metadata:
Despite following these steps, the metadata, especially the stored procedures, is not updating correctly, and I encounter the following error when syncing:
Steps to Reproduce:
Expected Behavior:
The old metadata should be removed, and new metadata (such as stored procedures and triggers) should be correctly provisioned after a schema update, allowing sync to proceed without errors.
Actual Behavior:
The metadata does not update as expected after deprovisioning and provisioning, and old stored procedures and triggers remain, resulting in sync errors.
Question:
Am I missing any steps or doing something wrong in this process? Is there a different approach I should be using to ensure the metadata is correctly updated after a schema change?
Additional Context:
We are using SQL Server and leveraging change tracking for client-server synchronization. The goal is to ensure that after any database schema updates, the metadata is regenerated properly.
Environment:
The text was updated successfully, but these errors were encountered: