{"action":"created","issue":{"url":"https://api.github.com/repos/tjwebb/sails-permissions/issues/89","labels_url":"https://api.github.com/repos/tjwebb/sails-permissions/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/tjwebb/sails-permissions/issues/89/comments","events_url":"https://api.github.com/repos/tjwebb/sails-permissions/issues/89/events","html_url":"https://github.com/tjwebb/sails-permissions/issues/89","id":95676538,"number":89,"title":"Error in sails-permissions hook with sails-mysql","user":{"login":"khchan","id":1270511,"avatar_url":"https://avatars.githubusercontent.com/u/1270511?v=3","gravatar_id":"","url":"https://api.github.com/users/khchan","html_url":"https://github.com/khchan","followers_url":"https://api.github.com/users/khchan/followers","following_url":"https://api.github.com/users/khchan/following{/other_user}","gists_url":"https://api.github.com/users/khchan/gists{/gist_id}","starred_url":"https://api.github.com/users/khchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khchan/subscriptions","organizations_url":"https://api.github.com/users/khchan/orgs","repos_url":"https://api.github.com/users/khchan/repos","events_url":"https://api.github.com/users/khchan/events{/privacy}","received_events_url":"https://api.github.com/users/khchan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tjwebb/sails-permissions/labels/bug","name":"bug","color":"800000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-17T15:12:54Z","updated_at":"2015-07-17T18:50:04Z","closed_at":null,"body":"[Installed: sails-mysql@0.11.0, sails-auth@1.3.1, sails-permissions@1.3.1]\r\n\r\nStarting from a new sails app with the latest version of sails-permissions, after lifting with an empty DB, the following error occurs during the User.register step in the user fixture, resulting in the passport and permission tables being empty.  (This behaviour does not occur with sails-mongo)\r\n\r\n```\r\n$ sails lift\r\n\r\ninfo: Starting app...\r\n\r\ninfo: permissions: initializing sails-permissions hook\r\ndebug: sails-permissions: syncing waterline models\\\r\ndebug: sails-permissions: admin user does not exist; creating...\r\ndebug: [ { type: 'insert',\r\n    collection: 'role_users__user_roles',\r\n    criteria: { role_users: 2, user_roles: 1 },\r\n    values: { role_users: 2, user_roles: 1 },\r\n    err: [Error: Trying to '.add()' an instance which already exists!] } ]\r\nerror: [ { type: 'insert',\r\n    collection: 'role_users__user_roles',\r\n    criteria: { role_users: 2, user_roles: 1 },\r\n    values: { role_users: 2, user_roles: 1 },\r\n    err: [Error: Trying to '.add()' an instance which already exists!] } ]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/tjwebb/sails-permissions/issues/comments/122371678","html_url":"https://github.com/tjwebb/sails-permissions/issues/89#issuecomment-122371678","issue_url":"https://api.github.com/repos/tjwebb/sails-permissions/issues/89","id":122371678,"user":{"login":"khchan","id":1270511,"avatar_url":"https://avatars.githubusercontent.com/u/1270511?v=3","gravatar_id":"","url":"https://api.github.com/users/khchan","html_url":"https://github.com/khchan","followers_url":"https://api.github.com/users/khchan/followers","following_url":"https://api.github.com/users/khchan/following{/other_user}","gists_url":"https://api.github.com/users/khchan/gists{/gist_id}","starred_url":"https://api.github.com/users/khchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khchan/subscriptions","organizations_url":"https://api.github.com/users/khchan/orgs","repos_url":"https://api.github.com/users/khchan/repos","events_url":"https://api.github.com/users/khchan/events{/privacy}","received_events_url":"https://api.github.com/users/khchan/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T18:50:04Z","updated_at":"2015-07-17T18:50:04Z","body":"0.11.0"}}