1 files changed, 22 insertions, 0 deletions
diff --git a/src/util/migrations/postgres/1660404619978-PluginConfigs.ts b/src/util/migrations/postgres/1660404619978-PluginConfigs.ts
new file mode 100644
index 00000000..d8a5ab4d
--- /dev/null
+++ b/src/util/migrations/postgres/1660404619978-PluginConfigs.ts
@@ -0,0 +1,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"
+ `);
+ }
+
+}
|