mizzkey/packages/backend/migration/1704343998612-avatardecoration_fed.js
mattyatea 085a93b9fc AvatarDecoration federation
and more fix
2024-01-04 14:16:28 +09:00

14 lines
569 B
JavaScript

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"`);
}
}