{"action":"created","issue":{"url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/44","labels_url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/44/comments","events_url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/44/events","html_url":"https://github.com/sgress454/sails-hook-autoreload/issues/44","id":114647174,"number":44,"title":"Waterline encountered a fatal error when trying to perform the `alter` auto-migration strategy.","user":{"login":"juanpasolano","id":1621720,"avatar_url":"https://avatars.githubusercontent.com/u/1621720?v=3","gravatar_id":"","url":"https://api.github.com/users/juanpasolano","html_url":"https://github.com/juanpasolano","followers_url":"https://api.github.com/users/juanpasolano/followers","following_url":"https://api.github.com/users/juanpasolano/following{/other_user}","gists_url":"https://api.github.com/users/juanpasolano/gists{/gist_id}","starred_url":"https://api.github.com/users/juanpasolano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanpasolano/subscriptions","organizations_url":"https://api.github.com/users/juanpasolano/orgs","repos_url":"https://api.github.com/users/juanpasolano/repos","events_url":"https://api.github.com/users/juanpasolano/events{/privacy}","received_events_url":"https://api.github.com/users/juanpasolano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-02T17:48:37Z","updated_at":"2015-11-26T00:48:12Z","closed_at":null,"body":"Every time I change something in a controller and the hooks restarts the ORM I get this error.\r\nThe thing i don't get is why is trying to migrate if I have `migrate: 'safe'` in my `config/models.js`\r\n```\r\nverbose: Detected API change -- reloading controllers / models...\r\nverbose: Loading the app's models and adapters...\r\nverbose: Loading app models...\r\nverbose: Loading app adapters...\r\nverbose: Starting ORM...\r\nWaterline encountered a fatal error when trying to perform the `alter` auto-migration strategy.\r\nIn a couple of seconds, the data (cached in memory) will be logged to stdout.\r\n(a failsafe put in place to preserve development data)\r\n\r\nIn the mean time, here's the error:\r\n\r\nError (E_UNKNOWN) :: Encountered an unexpected error\r\n: ER_NO_SUCH_TABLE: Table 'vetheroes.branch' doesn't exist\r\n    at Query.Sequence._packetToError (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:48:14)\r\n    at Query.ErrorPacket (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Query.js:83:18)\r\n    at Protocol._parsePacket (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:271:23)\r\n    at Parser.write (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Parser.js:77:12)\r\n    at Protocol.write (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:39:16)\r\n    at Socket.<anonymous> (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:92:28)\r\n    at Socket.emit (events.js:107:17)\r\n    at readableAddChunk (_stream_readable.js:163:16)\r\n    at Socket.Readable.push (_stream_readable.js:126:10)\r\n    at TCP.onread (net.js:538:20)\r\n    --------------------\r\n    at Protocol._enqueue (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:135:48)\r\n    at PoolConnection.Connection.query (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:197:25)\r\n    at /Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/lib/adapter.js:489:22\r\n    at /Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/async/lib/async.js:154:25\r\n    at Query._callback (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/lib/adapter.js:464:13)\r\n    at Query.Sequence.end (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)\r\n    at Query._handleFinalResultPacket (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Query.js:144:8)\r\n    at Query.OkPacket (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Query.js:78:10)\r\n    at Protocol._parsePacket (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:271:23)\r\n    at Parser.write (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Parser.js:77:12)\r\n    at Protocol.write (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:39:16)\r\n    at Socket.<anonymous> (/Users/juan/Documents/juanpa/vetapp/sites/webapp/back/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:92:28)\r\n    at Socket.emit (events.js:107:17)\r\n    at readableAddChunk (_stream_readable.js:163:16)\r\n    at Socket.Readable.push (_stream_readable.js:126:10)\r\n    at TCP.onread (net.js:538:20)\r\n\r\nDetails:  Error: ER_NO_SUCH_TABLE: Table 'vetheroes.branch' doesn't exist\r\n```\r\n\r\nsails v.11"},"comment":{"url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/comments/159768320","html_url":"https://github.com/sgress454/sails-hook-autoreload/issues/44#issuecomment-159768320","issue_url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/44","id":159768320,"user":{"login":"tommykennedy","id":6302801,"avatar_url":"https://avatars.githubusercontent.com/u/6302801?v=3","gravatar_id":"","url":"https://api.github.com/users/tommykennedy","html_url":"https://github.com/tommykennedy","followers_url":"https://api.github.com/users/tommykennedy/followers","following_url":"https://api.github.com/users/tommykennedy/following{/other_user}","gists_url":"https://api.github.com/users/tommykennedy/gists{/gist_id}","starred_url":"https://api.github.com/users/tommykennedy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommykennedy/subscriptions","organizations_url":"https://api.github.com/users/tommykennedy/orgs","repos_url":"https://api.github.com/users/tommykennedy/repos","events_url":"https://api.github.com/users/tommykennedy/events{/privacy}","received_events_url":"https://api.github.com/users/tommykennedy/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T00:48:12Z","updated_at":"2015-11-26T00:48:12Z","body":"+1\r\n"}}