*This post is locked for comments
*This post is locked for comments
No way for a single table.
In a production environment, recreate is not possible, you need to always be backward compatible. In production you need to act as explained here:
[View:https://demiliani.com/2018/10/26/dynamics-365-business-central-handling-breaking-schema-changes-on-production/]
Hi,
How about if I have 10 tables in my extension and only 1 is getting modified, do I have to loose the data in all the other tables? Is there a way to use the "schemaUpdateMode": "Recreate" on only 1 table?
What about in a production environment, how would you handle modifications to your tables without loosing your data?
Thanks
Yann
The data synchronization between each publish of an extension is controlled by schemaUpdateMode setting, which is specified in the launch.json. This setting consists of two options; Synchronize and Recreate. The default value for schemaUpdateMode is set to Synchronize mode, which means that every time you publish an extension the data you entered is preserved.
If you don't want this, you can change the schemaUpdateMode setting from Synchronize to Recreate.
When you set the schema update mode to Recreate, all the tables and table extensions are recreated at every publish, which means that all the data in those tables are lost.
sir how you use force in AL Extension V2.0 ?
That's surprising.
Had you used force to synchronize the changes.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156