{ "id": "144814", "key": "AC-1141", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-09-29T01:55:11.000+0000", "created": "2015-02-16T12:26:56.000+0000", "labels": [ "migration", "model", "sqlite" ], "versions": [], "issuelinks": [ { "id": "52036", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "161086", "key": "AC-3847", "fields": { "summary": "Migration only applies to the table not the model", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-14T22:53:21.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" } ], "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.\r\n\r\nBecause 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.", "attachment": [], "flagged": false, "summary": "Migration partially applied", "creator": { "name": "lukasz.mendelowski", "key": "lukasz.mendelowski", "displayName": "Łukasz Mendelowski", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "lukasz.mendelowski", "key": "lukasz.mendelowski", "displayName": "Łukasz Mendelowski", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.4.1 GA\r\nAlloy 1.5.1", "comment": { "comments": [ { "id": "346471", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~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?\r\n", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-03-18T23:44:05.000+0000", "updated": "2015-03-18T23:44:05.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }