mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 19:22:28 +00:00
fix: incomplete migration
This commit is contained in:
parent
1b00e2ed57
commit
60907cdc4b
2 changed files with 1 additions and 7 deletions
BIN
hydra.db
BIN
hydra.db
Binary file not shown.
|
@ -22,9 +22,7 @@ export class FixRepackUploadDate1715900413313 implements MigrationInterface {
|
|||
`INSERT INTO repack_temp (title, old_id) SELECT title, id FROM repack WHERE repacker = 'onlinefix';`
|
||||
);
|
||||
|
||||
await queryRunner.query(
|
||||
`UPDATE repack SET repacker = 'onlinefix-old' WHERE repacker = 'onlinefix';`
|
||||
);
|
||||
await queryRunner.query(`DELETE FROM repack WHERE repacker = 'onlinefix';`);
|
||||
|
||||
const updateDataSource = createDataSource({
|
||||
database: app.isPackaged
|
||||
|
@ -69,10 +67,6 @@ export class FixRepackUploadDate1715900413313 implements MigrationInterface {
|
|||
WHERE EXISTS (select old_id from repack_temp WHERE old_id = game.repackId)`
|
||||
);
|
||||
|
||||
await queryRunner.query(
|
||||
`DELETE FROM repack WHERE repacker = 'onlinefix-old';`
|
||||
);
|
||||
|
||||
await queryRunner.dropTable("repack_temp");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue