diff options
| author | Adam Soltys <[email protected]> | 2018-01-29 21:33:38 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2018-01-29 21:33:38 -0800 |
| commit | de4d44a58f6bb49d5762632d2cad96e1dc96c56f (patch) | |
| tree | 366f743d4c8dc05593d4c7f8627a8bac6e33ef9a /migrations | |
| parent | 49ec609f5b4dc0c5577c398ff229d710db902d4d (diff) | |
| download | coinos-server-de4d44a58f6bb49d5762632d2cad96e1dc96c56f.tar.gz coinos-server-de4d44a58f6bb49d5762632d2cad96e1dc96c56f.zip | |
minor
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/20180128181238-create-user.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/migrations/20180128181238-create-user.js b/migrations/20180128181238-create-user.js index 30cc4bbc..50424e18 100644 --- a/migrations/20180128181238-create-user.js +++ b/migrations/20180128181238-create-user.js @@ -1,7 +1,7 @@ 'use strict'; module.exports = { up: (queryInterface, Sequelize) => { - return queryInterface.createTable('Users', { + return queryInterface.createTable('users', { id: { allowNull: false, autoIncrement: true, @@ -41,6 +41,9 @@ module.exports = { privkey: { type: Sequelize.STRING }, + index: { + type: Sequelize.INTEGER + }, createdAt: { allowNull: false, type: Sequelize.DATE @@ -52,6 +55,6 @@ module.exports = { }); }, down: (queryInterface, Sequelize) => { - return queryInterface.dropTable('Users'); + return queryInterface.dropTable('users'); } }; |
