update prevention message

This commit is contained in:
Julian Krauser 2025-01-31 11:25:00 +01:00
parent 9a1f4a2985
commit 0994274c0c

View file

@ -8,7 +8,9 @@ export class BackupAndResetDatabase1738166124200 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
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")) {