{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails-mysql/issues/209","labels_url":"https://api.github.com/repos/balderdashy/sails-mysql/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails-mysql/issues/209/comments","events_url":"https://api.github.com/repos/balderdashy/sails-mysql/issues/209/events","html_url":"https://github.com/balderdashy/sails-mysql/pull/209","id":69837362,"number":209,"title":"Added support for BIGINT, TINYINT and SMALLINT.","user":{"login":"sixpounder","id":187334,"avatar_url":"https://avatars.githubusercontent.com/u/187334?v=3","gravatar_id":"","url":"https://api.github.com/users/sixpounder","html_url":"https://github.com/sixpounder","followers_url":"https://api.github.com/users/sixpounder/followers","following_url":"https://api.github.com/users/sixpounder/following{/other_user}","gists_url":"https://api.github.com/users/sixpounder/gists{/gist_id}","starred_url":"https://api.github.com/users/sixpounder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sixpounder/subscriptions","organizations_url":"https://api.github.com/users/sixpounder/orgs","repos_url":"https://api.github.com/users/sixpounder/repos","events_url":"https://api.github.com/users/sixpounder/events{/privacy}","received_events_url":"https://api.github.com/users/sixpounder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-04-21T12:49:44Z","updated_at":"2015-07-26T10:29:12Z","closed_at":"2015-06-08T13:14:37Z","pull_request":{"url":"https://api.github.com/repos/balderdashy/sails-mysql/pulls/209","html_url":"https://github.com/balderdashy/sails-mysql/pull/209","diff_url":"https://github.com/balderdashy/sails-mysql/pull/209.diff","patch_url":"https://github.com/balderdashy/sails-mysql/pull/209.patch"},"body":"Added support for BIGINT, TINYINT and SMALLINT using the 'size' model attribute key to determine which sql type is needed. \r\n\r\nNo MEDIUMINT supported because as far as I know MEDIUMINTs get internally promoted to INTs.\r\n\r\nInitially tested against latest stable waterline/sails release. "},"comment":{"url":"https://api.github.com/repos/balderdashy/sails-mysql/issues/comments/124967472","html_url":"https://github.com/balderdashy/sails-mysql/pull/209#issuecomment-124967472","issue_url":"https://api.github.com/repos/balderdashy/sails-mysql/issues/209","id":124967472,"user":{"login":"dmarcelino","id":1280446,"avatar_url":"https://avatars.githubusercontent.com/u/1280446?v=3","gravatar_id":"","url":"https://api.github.com/users/dmarcelino","html_url":"https://github.com/dmarcelino","followers_url":"https://api.github.com/users/dmarcelino/followers","following_url":"https://api.github.com/users/dmarcelino/following{/other_user}","gists_url":"https://api.github.com/users/dmarcelino/gists{/gist_id}","starred_url":"https://api.github.com/users/dmarcelino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmarcelino/subscriptions","organizations_url":"https://api.github.com/users/dmarcelino/orgs","repos_url":"https://api.github.com/users/dmarcelino/repos","events_url":"https://api.github.com/users/dmarcelino/events{/privacy}","received_events_url":"https://api.github.com/users/dmarcelino/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T10:29:12Z","updated_at":"2015-07-26T10:29:12Z","body":"This PR implements `TINYINT` / `SMALLINT` / `BIGINT` and they are enabled by using `size` in the model definitions, example:\r\n\r\n```js\r\n{\r\n  //...\r\n  attributes: {\r\n    aSmallInt: {\r\n      type: 'integer',\r\n      size: 16   // 8 - TINYINT, 16 - SMALLINT, 64 - BIGINT\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nAs to regards for `DECIMAL`, if the existing workaround is not viable for you I'm afraid you'll have to wait for #199 to be completed. Code contributions are also welcomed in case you have some ideas. Preferably something that is compatible with balderdashy/waterline#981 as that is how we are aiming to allow adaptes to extend existing types."}}