Hi,
Can anyone have an example to use database migration. For example the first version looks like this
config: { "columns": { "name":"string", "contact":"string" }, "adapter": { "type": "sql", "collection_name": "Sample" } },and the second version looks like this.
config: { "columns": { "name":"string", "contact":"string", "message:"string" }, "adapter": { "type": "sql", "collection_name": "Sample" } },How can I do a migration so that the data in the first version would be copied into the second version before dropping the entire table and recreating it? Does alloy automatically perform this task? if not where should I place my codes? Can anyone post a sample code.
Thanks!!!
1 Answer
http://docs.appcelerator.com/titanium/latest/#!/guide/Alloy_Sync_Adapters_and_Migrations
Look there, near the bottom.
Your Answer
Think you can help? Login to answer this question!