import { MigrationInterface, QueryRunner } from 'typeorm'; export class DropUploadLastViewedAt1791230839247 implements MigrationInterface { name = 'DropUploadLastViewedAt1791230839247'; public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(`ALTER TABLE "uploads" DROP COLUMN "lastViewedAt"`); } public async down(queryRunner: QueryRunner): Promise { await queryRunner.query(`ALTER TABLE "uploads" ADD "lastViewedAt" TIMESTAMP WITH TIME ZONE`); } }