diff --git a/migrations/20230807103447-add_custom_profile_bg.js b/migrations/20230807103447-add_custom_profile_bg.js new file mode 100644 index 0000000..4509860 --- /dev/null +++ b/migrations/20230807103447-add_custom_profile_bg.js @@ -0,0 +1,15 @@ +'use strict'; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up (queryInterface, Sequelize) { + await queryInterface.addColumn('Profiles', 'customBackground', { + type: Sequelize.STRING, + allowNull: true + }); + }, + + async down (queryInterface, Sequelize) { + await queryInterface.removeColumn('Profiles', 'customBackground'); + } +}; diff --git a/models/profile.js b/models/profile.js index bbed633..489fd54 100644 --- a/models/profile.js +++ b/models/profile.js @@ -20,6 +20,7 @@ module.exports = (sequelize, DataTypes) => { Profile.init({ userId: DataTypes.INTEGER, customStatus: DataTypes.STRING, + customBackground: DataTypes.STRING, slotOne: DataTypes.INTEGER, slotTwo: DataTypes.INTEGER, slotThree: DataTypes.INTEGER,