diff options
author | Wu Cheng-Han | 2016-12-02 01:58:14 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-12-02 01:58:14 +0800 |
commit | a73d9ce39e2107b2a9628003f05900d4a641bee5 (patch) | |
tree | 15778b1a6e3322bfe6e6c7a68f2c6e31f4c34844 /lib/migrations | |
parent | 52772829ce8ccc7eac1fe1df9ace65d90ef36a2c (diff) |
Update to support optional email register and signin
Diffstat (limited to 'lib/migrations')
-rw-r--r-- | lib/migrations/20161201050312-support-email-signin.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/migrations/20161201050312-support-email-signin.js b/lib/migrations/20161201050312-support-email-signin.js new file mode 100644 index 00000000..bdea7c8c --- /dev/null +++ b/lib/migrations/20161201050312-support-email-signin.js @@ -0,0 +1,13 @@ +'use strict'; + +module.exports = { + up: function (queryInterface, Sequelize) { + queryInterface.addColumn('Users', 'email', Sequelize.TEXT); + queryInterface.addColumn('Users', 'password', Sequelize.TEXT); + }, + + down: function (queryInterface, Sequelize) { + queryInterface.removeColumn('Users', 'email', Sequelize.TEXT); + queryInterface.removeColumn('Users', 'password', Sequelize.TEXT); + } +}; |