From 8994cce1ad5f8f6fe7e1c09900a321f4582c377e Mon Sep 17 00:00:00 2001 From: les Date: Tue, 10 Dec 2019 22:30:47 +0100 Subject: [PATCH] [fix] remove username / fix #60 --- .../20191210212618-remove_username.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 server/migrations/20191210212618-remove_username.js diff --git a/server/migrations/20191210212618-remove_username.js b/server/migrations/20191210212618-remove_username.js new file mode 100644 index 00000000..5f5928f6 --- /dev/null +++ b/server/migrations/20191210212618-remove_username.js @@ -0,0 +1,17 @@ +'use strict'; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.removeColumn('users', 'username') + }, + + down: (queryInterface, Sequelize) => { + /* + Add reverting commands here. + Return a promise to correctly handle asynchronicity. + + Example: + return queryInterface.dropTable('users'); + */ + } +};