summary refs log tree commit diff
path: root/src/util/migrations/postgres/1660404619978-PluginConfigs.ts
blob: 21d4757c606418362a3cd4ba47568fa9534213d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"
        `);
	}
}