update prevention message
This commit is contained in:
parent
9a1f4a2985
commit
0994274c0c
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,9 @@ export class BackupAndResetDatabase1738166124200 implements MigrationInterface {
|
||||||
|
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
if ((await queryRunner.hasTable("user")) && !(await queryRunner.hasTable("salutation"))) {
|
if ((await queryRunner.hasTable("user")) && !(await queryRunner.hasTable("salutation"))) {
|
||||||
throw new InternalException("Cannot update due to skiped version, resulting in data loss");
|
throw new InternalException(
|
||||||
|
"Cannot update due to skiped version. Update to v1.2.2 Version first to prevent data loss and get access to the newer Versions."
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (await queryRunner.hasTable("user")) {
|
if (await queryRunner.hasTable("user")) {
|
||||||
|
|
Loading…
Reference in a new issue