Skip to content

Commit

Permalink
fix: Raise exception with details on failing migration [DHIS2-12600]
Browse files Browse the repository at this point in the history
  • Loading branch information
enricocolasante committed Dec 3, 2024
1 parent 36dd387 commit 89730ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BEGIN

EXCEPTION
WHEN not_null_violation THEN
RAISE EXCEPTION 'There are inconsistent data in your DB. Please check https://github.com/dhis2/dhis2-releases/blob/master/releases/2.42/migration-notes.md to have more information on the issue and to find ways to fix it. Detailed error message: %', SQLERRM;
RAISE EXCEPTION 'There are inconsistent data in your DB. Please check https://github.com/dhis2/dhis2-releases/blob/master/releases/2.42/migration-notes.md#null-organisation-unit to have more information on the issue and to find ways to fix it. Detailed error message: %', SQLERRM;

END;
$$;

0 comments on commit 89730ac

Please sign in to comment.