mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: add migration
This commit is contained in:
parent
7231848bd8
commit
be4d13533c
3 changed files with 19 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
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%';`
|
||||
);
|
||||
}
|
||||
|
||||
public async down(_: QueryRunner): Promise<void> {
|
||||
return;
|
||||
}
|
||||
}
|
3
src/main/migrations/index.ts
Normal file
3
src/main/migrations/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { FixRepackUploadDate1715900413313 } from "./fix-repack-uploadDate/1715900413313-fix_repack_uploadDate";
|
||||
|
||||
export default [FixRepackUploadDate1715900413313];
|
Loading…
Add table
Add a link
Reference in a new issue