mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
* fix: fix PostgreSQL migrations and TelegramMessageThreadId migration * fix: add missing migration to SQLite introduced by PostgreSQL
20 lines
570 B
TypeScript
20 lines
570 B
TypeScript
import type { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddTelegramMessageThreadId1734786596045
|
|
implements MigrationInterface
|
|
{
|
|
name = 'AddTelegramMessageThreadId1734786596045';
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`ALTER TABLE "user_settings" ADD "telegramMessageThreadId" character varying`
|
|
);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(
|
|
`ALTER TABLE "user_settings" DROP COLUMN "telegramMessageThreadId"`
|
|
);
|
|
}
|
|
}
|