{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/cli/issues/187","labels_url":"https://api.github.com/repos/sequelize/cli/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/cli/issues/187/comments","events_url":"https://api.github.com/repos/sequelize/cli/issues/187/events","html_url":"https://github.com/sequelize/cli/issues/187","id":108206278,"number":187,"title":"sequelize db:migrate not working","user":{"login":"Vietworm","id":7351351,"avatar_url":"https://avatars.githubusercontent.com/u/7351351?v=3","gravatar_id":"","url":"https://api.github.com/users/Vietworm","html_url":"https://github.com/Vietworm","followers_url":"https://api.github.com/users/Vietworm/followers","following_url":"https://api.github.com/users/Vietworm/following{/other_user}","gists_url":"https://api.github.com/users/Vietworm/gists{/gist_id}","starred_url":"https://api.github.com/users/Vietworm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vietworm/subscriptions","organizations_url":"https://api.github.com/users/Vietworm/orgs","repos_url":"https://api.github.com/users/Vietworm/repos","events_url":"https://api.github.com/users/Vietworm/events{/privacy}","received_events_url":"https://api.github.com/users/Vietworm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-24T20:18:31Z","updated_at":"2015-09-29T13:57:57Z","closed_at":null,"body":"I create migration as following:\r\n```\r\nsequelize migration:create --name articles --env development\r\n```\r\nand then define migrations `articles` generated.\r\nNext, type: `sequelize db:migrate`\r\nOf course, I did configuration database information on `config.js` before that. But query return error,i did uninstall sequelize-cli and reinstall but still not working. :(\r\n\r\nI hope, have someone support my issue.\r\n\r\nThanks & Best regards,\r\n\r\n```\r\nSequelize [Node: 3.2.0, CLI: 1.9.1, ORM: 3.9.0]\r\n\r\nLoaded configuration file \"config\\config.json\".\r\nUsing environment \"development\".\r\nUsing gulpfile ~\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\lib\\gulpfile.js\r\nStarting 'db:migrate'...\r\n'db:migrate' errored after 15 ms\r\n    at new Sequelize (C:\\Users\\0xgi\\Desktop\\node_modules\\sequelize\\lib\\sequelize.js:202:11)\r\n    at getSequelizeInstance (C:\\Users\\0xgi\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\lib\\tasks\\db.js:2\r\n82:10)\r\n    at getMigrator (C:\\Users\\0xgi\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\lib\\tasks\\db.js:287:21)\r\n    at Object.module.exports.db:migrate.task (C:\\Users\\0xgi\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\\r\nlib\\tasks\\db.js:23:7)\r\n    at Gulp.gulp.task.aliases (C:\\Users\\0xgi\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\lib\\helpers\\gul\r\np-helper.js:14:14)\r\n    at module.exports (C:\\Users\\0xgi\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\node_modules\\gulp\\node_\r\nmodules\\orchestrator\\lib\\runTask.js:34:7)\r\n    at Gulp.Orchestrator._runTask (C:\\Users\\0xgi\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\node_module\r\ns\\gulp\\node_modules\\orchestrator\\index.js:273:3)\r\n    at Gulp.Orchestrator._runStep (C:\\Users\\0xgi\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\node_module\r\ns\\gulp\\node_modules\\orchestrator\\index.js:214:10)\r\n    at Gulp.Orchestrator.start (C:\\Users\\0xgi\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\node_modules\\g\r\nulp\\node_modules\\orchestrator\\index.js:134:8)\r\n    at C:\\Users\\0xgi\\AppData\\Roaming\\npm\\node_modules\\sequelize-cli\\node_modules\\gulp\\bin\\gulp.js:129:20\r\n    at doNTCallback0 (node.js:407:9)\r\n    at process._tickCallback (node.js:336:13)\r\n    at Function.Module.runMain (module.js:473:11)\r\n    at startup (node.js:117:18)\r\n    at node.js:951:3\r\n```"},"comment":{"url":"https://api.github.com/repos/sequelize/cli/issues/comments/144068927","html_url":"https://github.com/sequelize/cli/issues/187#issuecomment-144068927","issue_url":"https://api.github.com/repos/sequelize/cli/issues/187","id":144068927,"user":{"login":"timrourke","id":8141770,"avatar_url":"https://avatars.githubusercontent.com/u/8141770?v=3","gravatar_id":"","url":"https://api.github.com/users/timrourke","html_url":"https://github.com/timrourke","followers_url":"https://api.github.com/users/timrourke/followers","following_url":"https://api.github.com/users/timrourke/following{/other_user}","gists_url":"https://api.github.com/users/timrourke/gists{/gist_id}","starred_url":"https://api.github.com/users/timrourke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timrourke/subscriptions","organizations_url":"https://api.github.com/users/timrourke/orgs","repos_url":"https://api.github.com/users/timrourke/repos","events_url":"https://api.github.com/users/timrourke/events{/privacy}","received_events_url":"https://api.github.com/users/timrourke/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T13:57:57Z","updated_at":"2015-09-29T13:57:57Z","body":"Same error for me: \r\n\r\n```\r\nSequelize [Node: 0.12.2, CLI: 1.9.1, ORM: 3.9.0]\r\n\r\nLoaded configuration file \"config/config.json\".\r\nUsing environment \"development\".\r\nUsing gulpfile /usr/local/lib/node_modules/sequelize-cli/lib/gulpfile.js\r\nStarting 'db:migrate'...\r\n'db:migrate' errored after 28 ms\r\n    at new Sequelize (/usr/local/lib/node_modules/sequelize/lib/sequelize.js:202:11)\r\n    at getSequelizeInstance (/usr/local/lib/node_modules/sequelize-cli/lib/tasks/db.js:282:10)\r\n    at getMigrator (/usr/local/lib/node_modules/sequelize-cli/lib/tasks/db.js:287:21)\r\n    at Object.module.exports.db:migrate.task (/usr/local/lib/node_modules/sequelize-cli/lib/tasks/db.js:23:7)\r\n    at Gulp.gulp.task.aliases (/usr/local/lib/node_modules/sequelize-cli/lib/helpers/gulp-helper.js:14:14)\r\n    at module.exports (/usr/local/lib/node_modules/sequelize-cli/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)\r\n    at Gulp.Orchestrator._runTask (/usr/local/lib/node_modules/sequelize-cli/node_modules/gulp/node_modules/orchestrator/index.js:273:3)\r\n    at Gulp.Orchestrator._runStep (/usr/local/lib/node_modules/sequelize-cli/node_modules/gulp/node_modules/orchestrator/index.js:214:10)\r\n    at Gulp.Orchestrator.start (/usr/local/lib/node_modules/sequelize-cli/node_modules/gulp/node_modules/orchestrator/index.js:134:8)\r\n    at /usr/local/lib/node_modules/sequelize-cli/node_modules/gulp/bin/gulp.js:129:20\r\n    at process._tickCallback (node.js:355:11)\r\n    at Function.Module.runMain (module.js:503:11)\r\n    at startup (node.js:129:16)\r\n    at node.js:814:3\r\n```\r\n\r\nMy migrations file is very simple right now, and just looks like this:\r\n\r\n```\r\n'use strict';\r\n\r\nmodule.exports = {\r\n  up: function (queryInterface, Sequelize) {\r\n    /*\r\n      Add altering commands here.\r\n      Return a promise to correctly handle asynchronicity.\r\n\r\n      Example:\r\n      return queryInterface.createTable('users', { id: Sequelize.INTEGER });\r\n    */\r\n    queryInterface.addColumn(\r\n      'Gradients',\r\n      'angle',\r\n      {\r\n        type: Sequelize.FLOAT,\r\n        defaultValue: 0\r\n      }\r\n    );\r\n  },\r\n\r\n  down: function (queryInterface, Sequelize) {\r\n    /*\r\n      Add reverting commands here.\r\n      Return a promise to correctly handle asynchronicity.\r\n\r\n      Example:\r\n      return queryInterface.dropTable('users');\r\n    */\r\n    queryInterface.removeColumn(\r\n      'Gradients',\r\n      'angle'\r\n    );\r\n  }\r\n};\r\n```"}}