Merge new rendering into master #60
15
migrations/20230807103447-add_custom_profile_bg.js
Normal file
15
migrations/20230807103447-add_custom_profile_bg.js
Normal file
@@ -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');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -20,6 +20,7 @@ module.exports = (sequelize, DataTypes) => {
|
|||||||
Profile.init({
|
Profile.init({
|
||||||
userId: DataTypes.INTEGER,
|
userId: DataTypes.INTEGER,
|
||||||
customStatus: DataTypes.STRING,
|
customStatus: DataTypes.STRING,
|
||||||
|
customBackground: DataTypes.STRING,
|
||||||
slotOne: DataTypes.INTEGER,
|
slotOne: DataTypes.INTEGER,
|
||||||
slotTwo: DataTypes.INTEGER,
|
slotTwo: DataTypes.INTEGER,
|
||||||
slotThree: DataTypes.INTEGER,
|
slotThree: DataTypes.INTEGER,
|
||||||
|
|||||||
Reference in New Issue
Block a user