update backup and migrations
This commit is contained in:
parent
7a68fa7814
commit
5af3dd5283
2 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ import DatabaseActionException from "../exceptions/databaseActionException";
|
||||||
import { availableTemplates } from "../type/templateTypes";
|
import { availableTemplates } from "../type/templateTypes";
|
||||||
import SettingHelper from "./settingsHelper";
|
import SettingHelper from "./settingsHelper";
|
||||||
import { LoginRoutineEnum } from "../enums/loginRoutineEnum";
|
import { LoginRoutineEnum } from "../enums/loginRoutineEnum";
|
||||||
import { education } from "../entity/configuration/education";
|
|
||||||
|
|
||||||
export type BackupSection =
|
export type BackupSection =
|
||||||
| "member"
|
| "member"
|
||||||
|
|
|
@ -18,7 +18,7 @@ export class BackupAndResetDatabase1749296262915 implements MigrationInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (await queryRunner.hasTable("user")) {
|
if (await queryRunner.hasTable("user")) {
|
||||||
await BackupHelper.createBackup({ collectIds: false });
|
await BackupHelper.createBackup({ collectIds: true });
|
||||||
}
|
}
|
||||||
await queryRunner.clearDatabase();
|
await queryRunner.clearDatabase();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue