diff --git a/ordinis-migrations/src/main/resources/db/changelog/changes/0008-fix-scope-check-uppercase.xml b/ordinis-migrations/src/main/resources/db/changelog/changes/0008-fix-scope-check-uppercase.xml
new file mode 100644
index 0000000..6b99cdc
--- /dev/null
+++ b/ordinis-migrations/src/main/resources/db/changelog/changes/0008-fix-scope-check-uppercase.xml
@@ -0,0 +1,30 @@
+
+
+
+
+ JPA writes enum names UPPERCASE; original constraint accepted only lowercase. Replace.
+
+ ALTER TABLE dictionary_definitions
+ DROP CONSTRAINT IF EXISTS dictionary_definitions_scope_check;
+ ALTER TABLE dictionary_definitions
+ ADD CONSTRAINT dictionary_definitions_scope_check
+ CHECK (scope IN ('PUBLIC', 'INTERNAL', 'RESTRICTED'));
+
+
+
+
+ Same fix for dictionary_records.data_scope.
+
+ ALTER TABLE dictionary_records
+ DROP CONSTRAINT IF EXISTS dictionary_records_data_scope_check;
+ ALTER TABLE dictionary_records
+ ADD CONSTRAINT dictionary_records_data_scope_check
+ CHECK (data_scope IN ('PUBLIC', 'INTERNAL', 'RESTRICTED'));
+
+
+
+
diff --git a/ordinis-migrations/src/main/resources/db/changelog/master.xml b/ordinis-migrations/src/main/resources/db/changelog/master.xml
index 2bc6d2a..0bead67 100644
--- a/ordinis-migrations/src/main/resources/db/changelog/master.xml
+++ b/ordinis-migrations/src/main/resources/db/changelog/master.xml
@@ -12,5 +12,6 @@
+