Application Update - Data Migration

Posted by awbranch on 23-Sep-2014 10:59

Is there any mechanism for when a user updates a published Rollbase application, to run a script to migrate data as part of the installation process?

For example, suppose a user is updating an app from version 5 to 8. Perhaps there have been changes that require their existing data will need to be changed in some way to support the new version.

At a minimum just allowing a script to be kicked as part of the app install transaction, would allow a custom coded solution.

However, ideally you could define a script for each version change, from 5 to 6, from 6 to 7 and from 7 to 8 and Rollbase would detect the version updating from and to and would run each data migration script in order. And if a user rolls back an app, it would run the another set of de-migrate scripts in the opposite order. 

Thanks

Posted by Orchid Corpin on 23-Sep-2014 12:22

Hi awbranch,

Data can be migrated to a tenant after update of a published app by having the seed records included in the XML and do the "Push Updates" in the master zone(where your published apps at), note that seed records will be distributed to all tenants who installed the app.

See more info in the documentation. Chapter 13 > Pushing Application Updates to Other Tenants http://documentation.progress.com/output/Rollbase/RB_User_Guide.pdf

Currently Rollbase do not have such mechanism to run a script after update/roll back of a published app.
You can file this as a product enhancement into our 'Ideas' page: https://community.progress.com/businessusers/i/rollbase/default.aspx
This would help us improve our product.

Regards,
Orchid

All Replies

Posted by Orchid Corpin on 23-Sep-2014 12:22

Hi awbranch,

Data can be migrated to a tenant after update of a published app by having the seed records included in the XML and do the "Push Updates" in the master zone(where your published apps at), note that seed records will be distributed to all tenants who installed the app.

See more info in the documentation. Chapter 13 > Pushing Application Updates to Other Tenants http://documentation.progress.com/output/Rollbase/RB_User_Guide.pdf

Currently Rollbase do not have such mechanism to run a script after update/roll back of a published app.
You can file this as a product enhancement into our 'Ideas' page: https://community.progress.com/businessusers/i/rollbase/default.aspx
This would help us improve our product.

Regards,
Orchid

This thread is closed