{ "id": "107113", "key": "ALOY-447", "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": "14771", "description": "Alloy 0.3.5", "name": "Alloy 0.3.5", "archived": false, "released": true, "releaseDate": "2013-01-18" }, { "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-17T20:02:32.000+0000", "created": "2012-12-27T18:30:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alloy" ], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-29T19:06:48.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "h2. update\r\n\r\nThis will be supported simply, like this:\r\n\r\n{code:javascript}\r\nexports.definition = {\r\n config: {\r\n columns: {\r\n myId: 'INTEGER PRIMARY KEY AUTOINCREMENT',\r\n col2: 'TEXT'\r\n }\r\n },\r\n adapter: {\r\n type: 'sql',\r\n collection_name: 'myTable',\r\n\r\n // tells Alloy _not_ to auto create a unique id column and \r\n // to use this column for Backbone syncing instead\r\n idAttribute: 'myId' \r\n }\r\n};\r\n{code}\r\n\r\nA test app will be available here: https://github.com/appcelerator/alloy/tree/master/test/apps/models/sql_keywords\r\n\r\nh2. Problem\r\n\r\nAlloy model column definitions should support \"primary autoincrement\" attributes to support the creation of unique identifiers for table rows.\r\n\r\nh2. Test case\r\n\r\nNo test case.\r\n\r\nh2. Logs\r\n\r\nNo logs\r\n\r\nh2. Discussions\r\n\r\n[Q&A reference|http://developer.appcelerator.com/question/146207/relationships-in-alloy-models]", "attachment": [], "flagged": false, "summary": "Alloy Models should have 'autoincrement' option for primary keys", "creator": { "name": "kenny", "key": "kenny", "displayName": "Joel Margolese", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "kenny", "key": "kenny", "displayName": "Joel Margolese", "active": true, "timeZone": "America/New_York" }, "environment": "all supported by Alloy", "comment": { "comments": [ { "id": "234858", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "in use in this test app: https://github.com/appcelerator/alloy/tree/master/test/apps/models/sql_keywords", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-17T20:02:32.000+0000", "updated": "2013-01-17T20:02:32.000+0000" }, { "id": "236153", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed also on 1_0_X master branch\r\nandroid device: 4.2\r\niPhone devices: iPhone 6 and iPad 4.3.5\r\nTiSDK: 3.0.2.v20130124164131\r\nCLI: 3.0.23\r\n\r\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-28T05:49:36.000+0000", "updated": "2013-01-28T05:49:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }