fix: match PhD values in degree backfill

This commit is contained in:
admin committed 2026-08-26 18:01:08 +03:00
1 parent aac909d0ef
commit 9c43e55aec
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@ ADD COLUMN IF NOT EXISTS has_academic_degree BOOLEAN NOT NULL DEFAULT FALSE;
UPDATE employees
SET has_academic_degree = COALESCE(
current_data::text ~* '(кандидат|доктор).{0,80}наук|ph\\.?[[:space:]]*d\\.?',
current_data::text ~* '(кандидат|доктор).{0,80}наук|ph\.?[[:space:]]*d\.?',
FALSE
);