WIP basic card dropping
This commit is contained in:
18
migrations/20220818130258-make-card-userid-nullable.js
Normal file
18
migrations/20220818130258-make-card-userid-nullable.js
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up (queryInterface, Sequelize) {
|
||||
await queryInterface.changeColumn('Cards', 'userId', {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: true,
|
||||
defaultValue: null
|
||||
});
|
||||
},
|
||||
|
||||
async down (queryInterface, Sequelize) {
|
||||
await queryInterface.changeColumn('Cards', 'userId', {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: false
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user