From 1ec2218a60bef5aeb95eed41b0f10a70a6867841 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 15 Aug 2022 14:13:47 +0200 Subject: Add sqlite migration for plugin settings --- .../sqlite/1660565540177-sync_rebase_15aug2022.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/util/migrations/sqlite/1660565540177-sync_rebase_15aug2022.ts (limited to 'src/util/migrations/sqlite') diff --git a/src/util/migrations/sqlite/1660565540177-sync_rebase_15aug2022.ts b/src/util/migrations/sqlite/1660565540177-sync_rebase_15aug2022.ts new file mode 100644 index 00000000..665df6c5 --- /dev/null +++ b/src/util/migrations/sqlite/1660565540177-sync_rebase_15aug2022.ts @@ -0,0 +1,18 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class syncRebase15aug20221660565540177 implements MigrationInterface { + name = 'syncRebase15aug20221660565540177' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(` + CREATE TABLE "plugin_config" ("key" varchar PRIMARY KEY NOT NULL, "value" text) + `); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(` + DROP TABLE "plugin_config" + `); + } + +} -- cgit 1.5.1