summary refs log tree commit diff
path: root/src/util/migrations/postgres/1660404619978-PluginConfigs.ts
blob: d8a5ab4d8f17ce3f6d4a408229ffb9d829e60b08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { MigrationInterface, QueryRunner } from "typeorm";

export class PluginConfigs1660404619978 implements MigrationInterface {
    name = 'PluginConfigs1660404619978'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            CREATE TABLE "plugin_config" (
                "key" character varying NOT NULL,
                "value" text,
                CONSTRAINT "PK_aa929ece56c59233b85a16f62ef" PRIMARY KEY ("key")
            )
        `);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            DROP TABLE "plugin_config"
        `);
    }

}