mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-05 04:15:43 +00:00
Add sqlite migration for plugin settings
This commit is contained in:
@@ -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"
|
||||
`);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -49,4 +49,5 @@ export * from "./Application";
|
||||
export * from "./NameValidation";
|
||||
export * from "./InvisibleCharacters";
|
||||
export * from "./Environment";
|
||||
export * from "./Logo";
|
||||
export * from "./Paths";
|
||||
Reference in New Issue
Block a user