allow-null-username
This commit is contained in:
15
server/migrations/20170904202454-allow-null-username.js
Normal file
15
server/migrations/20170904202454-allow-null-username.js
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
module.exports = {
|
||||||
|
up: async function(queryInterface, Sequelize) {
|
||||||
|
await queryInterface.changeColumn('users', 'username', {
|
||||||
|
type: Sequelize.STRING,
|
||||||
|
allowNull: true,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
down: async function(queryInterface, Sequelize) {
|
||||||
|
await queryInterface.changeColumn('users', 'username', {
|
||||||
|
type: Sequelize.STRING,
|
||||||
|
allowNull: false,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user