FoundKey/packages/backend/migration/1654124623992-remove-unused-image-urls.js
Johann150 03aa41664f
chore: remove unused columns
The columns "mascotImageUrl" and "errorImageUrl" are unused in the
web client. It is unlikely that they are being used elsewhere.
2022-07-11 12:49:39 +02:00

14 lines
572 B
JavaScript

export class removeUnusedImageUrls1654124623992 {
name = 'removeUnusedImageUrls1654124623992'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "mascotImageUrl"`);
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "errorImageUrl"`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "mascotImageUrl" character varying(512) DEFAULT '/assets/ai.png'`);
await queryRunner.query(`ALTER TABLE "meta" ADD "errorImageUrl" character varying(512) DEFAULT 'https://xn--931a.moe/aiart/yubitun.png'`);
}
}