WIP basic card dropping

This commit is contained in:
2022-08-18 19:24:44 +02:00
parent 29e3e6de23
commit ae60732836
13 changed files with 265 additions and 58 deletions

View 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
});
}
};