diff options
author | Yukai Huang | 2017-01-21 12:55:45 +0800 |
---|---|---|
committer | Yukai Huang | 2017-01-21 12:55:45 +0800 |
commit | 74b04d08b5a4cf51ba71dd1ea12388974e74f4df (patch) | |
tree | b9c82d9f35ab0875eadd0ce83108a100b8f4152a /lib | |
parent | 93d6fe6d7cf7d49b3dcea8ffaad4d3d51beed965 (diff) | |
parent | 6e8ff3de234471375836ba907e86bf39804c308e (diff) |
Merge branch 'master' into es6-integration
Diffstat (limited to 'lib')
-rw-r--r-- | lib/migrations/20161009040430-support-delete-note.js | 2 | ||||
-rw-r--r-- | lib/migrations/20161201050312-support-email-signin.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/migrations/20161009040430-support-delete-note.js b/lib/migrations/20161009040430-support-delete-note.js index f478b6fe..92ff6f7b 100644 --- a/lib/migrations/20161009040430-support-delete-note.js +++ b/lib/migrations/20161009040430-support-delete-note.js @@ -6,6 +6,6 @@ module.exports = { }, down: function (queryInterface, Sequelize) { - queryInterface.removeColumn('Notes', 'deletedAt', Sequelize.DATE); + queryInterface.removeColumn('Notes', 'deletedAt'); } }; diff --git a/lib/migrations/20161201050312-support-email-signin.js b/lib/migrations/20161201050312-support-email-signin.js index bdea7c8c..b5aaf777 100644 --- a/lib/migrations/20161201050312-support-email-signin.js +++ b/lib/migrations/20161201050312-support-email-signin.js @@ -7,7 +7,7 @@ module.exports = { }, down: function (queryInterface, Sequelize) { - queryInterface.removeColumn('Users', 'email', Sequelize.TEXT); - queryInterface.removeColumn('Users', 'password', Sequelize.TEXT); + queryInterface.removeColumn('Users', 'email'); + queryInterface.removeColumn('Users', 'password'); } }; |