Add sqlite migration for plugin settings

This commit is contained in:
TheArcaneBrony
2022-08-15 14:13:47 +02:00
committed by Rory&
parent 7f328903c1
commit cff389f8a9
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,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"
`);
}
}

View File

@@ -49,4 +49,5 @@ export * from "./Application";
export * from "./NameValidation";
export * from "./InvisibleCharacters";
export * from "./Environment";
export * from "./Logo";
export * from "./Paths";