fix DB type of MiUser.lastFetchedFeaturedAt

This commit is contained in:
Hazelnoot 2025-09-17 15:19:08 -04:00
parent 94c4df602f
commit 372385b755

View file

@ -0,0 +1,14 @@
/*
* SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class FixUserLastFetchedFeaturedAtType1758136690898 {
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "lastFetchedFeaturedAt" TYPE TIMESTAMP WITH TIME ZONE`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ALTER COLUMN "lastFetchedFeaturedAt" TYPE DATE`);
}
}