mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
change migration so it sets uploadDate = createdAt
This commit is contained in:
parent
be4d13533c
commit
4908d07ef2
@ -3,7 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
export class FixRepackUploadDate1715900413313 implements MigrationInterface {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`UPDATE repack SET uploadDate = datetime('now') WHERE uploadDate LIKE '%NaN%';`
|
||||
`UPDATE repack SET uploadDate = createdAt WHERE uploadDate LIKE '%NaN%';`
|
||||
);
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
import { FixRepackUploadDate1715900413313 } from "./fix-repack-uploadDate/1715900413313-fix_repack_uploadDate";
|
||||
import { FixRepackUploadDate1715900413313 } from "./1715900413313-fix_repack_uploadDate";
|
||||
|
||||
export default [FixRepackUploadDate1715900413313];
|
||||
|
Loading…
Reference in New Issue
Block a user