summary refs log tree commit diff
path: root/src/util/migrations/sqlite/1660565540177-sync_rebase_15aug2022.ts
blob: 665df6c5bb88d2b6c84f37747c9a2e63bdbbf5d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { MigrationInterface, QueryRunner } from "typeorm";

export class syncRebase15aug20221660565540177 implements MigrationInterface {
    name = 'syncRebase15aug20221660565540177'

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

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

}