mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-05 02:05:45 +00:00
Add missing migration for plugins
This commit is contained in:
14
src/util/migration/postgres/1753639700905-Plugins.ts
Normal file
14
src/util/migration/postgres/1753639700905-Plugins.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class Plugins1753639700905 implements MigrationInterface {
|
||||
name = 'Plugins1753639700905'
|
||||
|
||||
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"`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user