From b017822d9594daa9102ed9e3fa9972603fd8e9c3 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Mon, 18 Nov 2024 22:07:25 +0100 Subject: [PATCH] fix: add missing migration --- .../migration/1731963944025-AddOverrideRules.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 server/migration/1731963944025-AddOverrideRules.ts diff --git a/server/migration/1731963944025-AddOverrideRules.ts b/server/migration/1731963944025-AddOverrideRules.ts new file mode 100644 index 000000000..2283e37b2 --- /dev/null +++ b/server/migration/1731963944025-AddOverrideRules.ts @@ -0,0 +1,15 @@ +import type { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AddOverrideRules1731963944025 implements MigrationInterface { + name = 'AddOverrideRules1731963944025'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `CREATE TABLE "override_rule" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "radarrServiceId" integer, "sonarrServiceId" integer, "users" varchar, "genre" varchar, "language" varchar, "keywords" varchar, "profileId" integer, "rootFolder" varchar, "tags" varchar, "createdAt" datetime NOT NULL DEFAULT (datetime('now')), "updatedAt" datetime NOT NULL DEFAULT (datetime('now')))` + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`DROP TABLE "override_rule"`); + } +}