fix: match PhD values in degree backfill

This commit is contained in:
2026-08-26 18:01:08 +03:00
parent aac909d0ef
commit 9c43e55aec

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
);