{ "id": "108367", "key": "ALOY-479", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "14634", "description": "Alloy 1.0.0", "name": "Alloy 1.0.0", "archived": false, "released": true, "releaseDate": "2013-02-19" }, { "id": "14871", "description": "2013 Sprint 02", "name": "2013 Sprint 02", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-23T16:45:42.000+0000", "created": "2013-01-22T14:43:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "15103", "description": "Alloy 0.3.6", "name": "Alloy 0.3.6", "archived": false, "released": true, "releaseDate": "2013-01-19" } ], "issuelinks": [ { "id": "25019", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "105688", "key": "ALOY-402", "fields": { "summary": "Account for all 1.0.0 deprecations and API changes", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": null, "updated": "2018-03-07T22:25:52.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "from Ben Hatfield:\r\n\r\nHere is the code: https://gist.github.com/4589676\r\n\r\nHere are the step to reproduce the two issues:\r\n\r\n# Make sure line #16 (migration attribute) in models/book.js is commented. Run code as is on the iOS simulator. Application should run OK. Table version should be at version #2. In console output, the collection data should show title, author, alloy_id and isbn (as null).\r\n# Uncomment line #16 in models/book.js. Run code. Application should run OK. Table version should be at version 1. Console output should show collection data with only title, author and alloy_id. Isbn field should be gone.\r\n# Recomment line #16 and run code. The preloaded data is displayed twice on the simulator. Table version is at version 2 again. --> Table upgrade is OK except duplicate preload data. Seems to be applying version 1 again despite already being at that state previously.\r\n# Uncomment line #16 in models/book.js, and uncomment line #16 (dropTable) and comment out line #15 (DROP TABLE + db.name) in migrations/201300182216120_book.js (second version). Run code. Application throws SQL statement error.\r\n# Undo changes to migration file. Recomment line #16 and uncomment line #15. Run code. Application should run OK. All data is gone since the migration was interrupted in the previous step. --> dropTable method is not working for this downgrade.", "attachment": [], "flagged": false, "summary": "Migration processing bug", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }