Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1141] Migration partially applied

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-09-29T01:55:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Appcelerator CLI
Labelsmigration, model, sqlite
ReporterƁukasz Mendelowski
AssigneeShak Hossain
Created2015-02-16T12:26:56.000+0000
Updated2016-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.

Comments

  1. Radamantis Torres-Lechuga 2015-03-18

    [~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?

JSON Source