mizzkey/packages/backend/migration/1704343998612-avatardecoration_fed.js

14 lines
569 B
JavaScript
Raw Normal View History

export class AvatardecorationFed1704343998612 {
name = 'AvatardecorationFed1704343998612'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "avatar_decoration" ADD "host" character varying(256)`);
await queryRunner.query(`ALTER TABLE "avatar_decoration" ALTER COLUMN "category" SET DEFAULT ''`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "avatar_decoration" ALTER COLUMN "category" DROP DEFAULT`);
await queryRunner.query(`ALTER TABLE "avatar_decoration" DROP COLUMN "host"`);
}
}