Fix drop lastViewedAt migration order for fresh databases.

Run the column drop after AddUploadTable so TypeORM does not execute ALTER before uploads exists.
This commit is contained in:
2026-10-27 22:09:45 +01:00
parent 29407814cc
commit 3cf1d5e8aa
@@ -1,7 +1,7 @@
import { MigrationInterface, QueryRunner } from 'typeorm'; import { MigrationInterface, QueryRunner } from 'typeorm';
export class DropUploadLastViewedAt1761582000000 implements MigrationInterface { export class DropUploadLastViewedAt1791230839247 implements MigrationInterface {
name = 'DropUploadLastViewedAt1761582000000'; name = 'DropUploadLastViewedAt1791230839247';
public async up(queryRunner: QueryRunner): Promise<void> { public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "uploads" DROP COLUMN "lastViewedAt"`); await queryRunner.query(`ALTER TABLE "uploads" DROP COLUMN "lastViewedAt"`);