Files
sciagent/be0/migrations/011_academic_titles_vn.sql
Thinh Lam 688fac73e9
CI/CD / backend (push) Failing after 2m8s
CI/CD / frontend (push) Failing after 1m40s
CI/CD / deploy (push) Has been skipped
sciagent code + Gitea Actions CI/CD
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 09:38:30 +07:00

20 lines
985 B
SQL

-- Extend / refresh academic_titles for UMP staff profile dropdown (VN labels + BSCK codes).
-- Apply after 010: psql … -f be0/migrations/011_academic_titles_vn.sql
INSERT INTO academic_titles (code, label_vi, label_en, sort_order, active) VALUES
('professor', 'Giáo sư', 'Professor', 10, TRUE),
('associate_professor', 'Phó Giáo sư', 'Associate Professor', 20, TRUE),
('doctor_sc', 'Tiến sĩ', 'Doctor of Science', 30, TRUE),
('bsckii', 'BSCKII', 'Specialist level II', 35, TRUE),
('bscki', 'BSCKI', 'Specialist level I', 36, TRUE),
('master', 'Thạc sĩ', 'Master', 40, TRUE),
('doctor_md', 'Bác sĩ', 'Physician', 45, TRUE),
('pharmacist', 'Dược sĩ', 'Pharmacist', 46, TRUE),
('bachelor', 'Cử nhân', 'Bachelor', 50, TRUE),
('other', 'Khác (ghi rõ)', 'Other (specify)', 100, TRUE)
ON CONFLICT (code) DO UPDATE SET
label_vi = EXCLUDED.label_vi,
label_en = EXCLUDED.label_en,
sort_order = EXCLUDED.sort_order,
active = EXCLUDED.active;