Community: CMS / eCommerce Experts mailing list archives


Dev question: how do I migrate data to new version of schema when I update my custom addons?

- 16/12/2014 19:06:08
I am writing custom addons for my company. Over their life these
addons will accumulate data in the tables I have modelled, using the

During development, when I want to update the schema I have to
uninstall and reinstall the addon. It will drop all the tables and
recreate them.

The question is, when I am deploying a new version of an addon to
product (because it has new features which need new table columns,
etc), how do I safely preserve and migrate the production data to the
new schema without losing it?