mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: change migration to atomic
This commit is contained in:
parent
622107a6f1
commit
2b0f57f967
1 changed files with 0 additions and 10 deletions
|
@ -7,16 +7,6 @@ import { In, MigrationInterface, QueryRunner, Table } from "typeorm";
|
|||
|
||||
export class FixRepackUploadDate1715900413313 implements MigrationInterface {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
const existsTable = await queryRunner.query(
|
||||
`SELECT name FROM sqlite_master WHERE type='table' AND name='repack';`
|
||||
);
|
||||
|
||||
if (!existsTable.length) return;
|
||||
|
||||
const repackCount = await queryRunner.manager.count(Repack);
|
||||
|
||||
if (!repackCount) return;
|
||||
|
||||
await queryRunner.createTable(
|
||||
new Table({
|
||||
name: "repack_temp",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue