From de4d44a58f6bb49d5762632d2cad96e1dc96c56f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 29 Jan 2018 21:33:38 -0800 Subject: minor --- migrations/20180128181238-create-user.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'migrations') 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'); } }; -- cgit v1.2.3