[AC-1141] Migration partially applied
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2015-09-29T01:55:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Appcelerator CLI |
Labels | migration, model, sqlite |
Reporter | Ćukasz Mendelowski |
Assignee | Shak Hossain |
Created | 2015-02-16T12:26:56.000+0000 |
Updated | 2016-06-14T22:53:21.000+0000 |
Description
When I have a bunch of complicated migrations to apply it looks they are partially applied - my database structure has been updated but my model configs haven't. My model has incorrect columns in the config.columns field. So when I try to save a model with attributes (where keys represent the name of new columns in the database) the new fields are not saved.
Because sqlite doesn't support dropping columns in tables so one of my migrations renamed original table, crate a new table with the original name, copied data from the old table and drop it. I think this migration can cause that issue.
[~lukasz.mendelowski] Can you please provide more information, test case, steps to reproduce the issue and detailed info on what the issue that you are experiencing?