Updating Model Definitions?

Mar 19, 2011 at 3:32 AM
Edited Mar 19, 2011 at 3:32 AM

If in the future i release an update for my app which contains additional properties for the Model i am storing in the database what would happen to old data? would it be loaded into the new class definition and would it be saved with the new properties?

for example if i was storing objects using a class that had Guid, Name , Address  and then i released up update to add PhoneNumber what happens to the objects that didn't contain a phone number?

Mar 19, 2011 at 10:49 AM

Right now it will be a manual process, par of why Sterling supports multiple databases. If you look at the discussions you'll find a thread on versioning. We are looking at other ways to do this better moving forward.