hippofish/packages/backend/migration/1605965516823-instance-images.js

17 lines
699 B
JavaScript
Raw Normal View History

2021-11-11 18:02:25 +01:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class instanceImages1605965516823 {
constructor() {
this.name = 'instanceImages1605965516823';
}
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "backgroundImageUrl" character varying(512)`);
await queryRunner.query(`ALTER TABLE "meta" ADD "logoImageUrl" character varying(512)`);
}
2021-11-11 18:02:25 +01:00
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "logoImageUrl"`);
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "backgroundImageUrl"`);
}
}
2021-11-11 18:02:25 +01:00
exports.instanceImages1605965516823 = instanceImages1605965516823;