{ "id": "147604", "key": "ALOY-1278", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "19573", "name": "Release 6.2.3", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-09T19:23:31.000+0000", "created": "2015-05-06T23:05:04.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "alloy", "migration", "sqlite" ], "versions": [ { "id": "16596", "name": "Alloy 1.6.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2017-07-24T18:05:01.000+0000", "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" } }, "components": [ { "id": "13605", "name": "Models" } ], "description": "It will be nice if sql sync adapter will pass model config to migration functions. It will get access to model columns inside migration for example.\r\n\r\n{code:javascript}\r\nmigration.up = function(migrator, config) {\r\n migrator.createTable(config);\r\n // other migration actions\r\n};\r\n{code}\r\n\r\nCommunity PR: https://github.com/appcelerator/alloy/pull/684", "attachment": [], "flagged": false, "summary": "Pass model config to migration functions", "creator": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "subtasks": [], "reporter": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "environment": null, "closedSprints": [ { "id": 890, "state": "closed", "name": "2017 Sprint 10 Tooling", "startDate": "2017-05-08T00:27:34.394Z", "endDate": "2017-05-22T00:27:00.000Z", "completeDate": "2017-05-22T02:42:47.719Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "419396", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-05-09T19:23:31.000+0000", "updated": "2017-05-09T19:23:31.000+0000" }, { "id": "424605", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Node Version: 6.10.3\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.3-master.21\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version: 6.1.1.GA\r\n\r\nValidated fix with test app provided by development using the above environment.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-24T18:04:49.000+0000", "updated": "2017-07-24T18:04:49.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }