[fix] remove username / fix #60
This commit is contained in:
parent
3476afe1ab
commit
8994cce1ad
1 changed files with 17 additions and 0 deletions
17
server/migrations/20191210212618-remove_username.js
Normal file
17
server/migrations/20191210212618-remove_username.js
Normal file
|
@ -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');
|
||||
*/
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue