From 0994274c0c957339d0b5d3a1360a09c7b0cba97d Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Fri, 31 Jan 2025 11:25:00 +0100 Subject: [PATCH] update prevention message --- src/migrations/1738166124200-BackupAndResetDatabase.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/migrations/1738166124200-BackupAndResetDatabase.ts b/src/migrations/1738166124200-BackupAndResetDatabase.ts index f394fc8..0c07dca 100644 --- a/src/migrations/1738166124200-BackupAndResetDatabase.ts +++ b/src/migrations/1738166124200-BackupAndResetDatabase.ts @@ -8,7 +8,9 @@ export class BackupAndResetDatabase1738166124200 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise { 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")) {