Replies: 1 comment
|
Hi @mjfortier Great question — schema evolution behaves differently for CustomModels (which back real database tables) versus ModelExtensions (which don't), so I'll cover each. CustomModelsCustom Data uses a deliberately simplified, additive schema system rather than a full Django-style migration framework. The guiding principle is safe, non-destructive changes only — operations that could trigger an expensive table rewrite or risk existing data are simply not performed. For your specific question — adding a column and pushing the plugin:
Here's the full support matrix for schema changes on CustomModels:
A couple of practical notes:
ModelExtensionsModelExtensions are a different mechanism — they're proxy models over existing SDK tables (e.g. DocsThese are all documented here, which may be useful as your team ramps up:
Happy to dig into any specific scenario you have in mind — just let us know what models you're working with. |
Uh oh!
There was an error while loading. Please reload this page.
Hi there!
Our team is starting to test the use of CustomModels and ModelExtensions. We wanted to know what behavior to expect on schema change? If for example we add a column and push the plugin, what effect will it have on existing data in those tables?
Thanks!
All reactions