14 lines
533 B
TypeScript
14 lines
533 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddFaviconStorageKey1784700000000 implements MigrationInterface {
|
|
name = 'AddFaviconStorageKey1784700000000';
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "shop_settings" ADD "faviconStorageKey" character varying`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "shop_settings" DROP COLUMN "faviconStorageKey"`);
|
|
}
|
|
}
|