Remove username column (#5052)
This commit is contained in:
14
server/migrations/20230317144617-remove-user-username.js
Normal file
14
server/migrations/20230317144617-remove-user-username.js
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
async up(queryInterface) {
|
||||
return queryInterface.removeColumn("users", "username");
|
||||
},
|
||||
|
||||
async down(queryInterface, Sequelize) {
|
||||
return queryInterface.addColumn("users", "username", {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: true,
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user