summary refs log tree commit diff
path: root/src/util/migrations/postgres/1660404619978-PluginConfigs.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-27 05:18:48 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-09-04 10:48:54 +0200
commit7d936efb2f37db42c3e57ee9a915ed4d5ab8e25f (patch)
tree69d68d640c4ac2946b118591f02de9d3c24fb29b /src/util/migrations/postgres/1660404619978-PluginConfigs.ts
parentAdd sqlite migration for plugin settings (diff)
downloadserver-7d936efb2f37db42c3e57ee9a915ed4d5ab8e25f.tar.xz
Cleanup, reformat, fix some todos, git hook
fixup! Cleanup, reformat, fix some todos, git hook
Diffstat (limited to 'src/util/migrations/postgres/1660404619978-PluginConfigs.ts')
-rw-r--r--src/util/migrations/postgres/1660404619978-PluginConfigs.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/util/migrations/postgres/1660404619978-PluginConfigs.ts b/src/util/migrations/postgres/1660404619978-PluginConfigs.ts

index d8a5ab4d..21d4757c 100644 --- a/src/util/migrations/postgres/1660404619978-PluginConfigs.ts +++ b/src/util/migrations/postgres/1660404619978-PluginConfigs.ts
@@ -1,22 +1,21 @@ import { MigrationInterface, QueryRunner } from "typeorm"; export class PluginConfigs1660404619978 implements MigrationInterface { - name = 'PluginConfigs1660404619978' + name = "PluginConfigs1660404619978"; - public async up(queryRunner: QueryRunner): Promise<void> { - await queryRunner.query(` + 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(` + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query(` DROP TABLE "plugin_config" `); - } - + } }