diff --git a/ordinis-migrations/src/main/resources/db/changelog/changes/0009-fix-records-scope-check.xml b/ordinis-migrations/src/main/resources/db/changelog/changes/0009-fix-records-scope-check.xml
new file mode 100644
index 0000000..20a19cc
--- /dev/null
+++ b/ordinis-migrations/src/main/resources/db/changelog/changes/0009-fix-records-scope-check.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ В 0003 constraint назывался dictionary_records_scope_check (а не _data_scope_check как
+ ожидала 0008). Дропаем правильное имя и пересоздаём с UPPERCASE.
+
+ ALTER TABLE dictionary_records
+ DROP CONSTRAINT IF EXISTS dictionary_records_scope_check;
+ 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 0bead67..2e11263 100644
--- a/ordinis-migrations/src/main/resources/db/changelog/master.xml
+++ b/ordinis-migrations/src/main/resources/db/changelog/master.xml
@@ -13,5 +13,6 @@
+