From 85729fca83ac8ccc6beedd3c0a4cba599135dccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BD=97?= Date: Sun, 14 Jun 2026 07:00:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(#745):=20=E8=AF=B7=E4=BF=AE=E5=A4=8D=20Bug?= =?UTF-8?q?=20#745=EF=BC=9A=E3=80=90=E7=97=85=E6=A1=88=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E3=80=91=E7=94=B3=E8=AF=B7=E5=B0=81=E5=AD=98=E7=9A=84=E6=8A=A5?= =?UTF-8?q?=E5=8D=A1=E5=87=BA=E7=8E=B0=E6=8A=A5=E9=94=99Error=20updating?= =?UTF-8?q?=20database.=20Cause:=20org.postgresql.util.PSQLException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由 AI Agent (guanyu) 自动修复,请查看 diff 确认变更内容。 --- .../migration/V42__bug745_fix_mr_sealing_medical_record_id.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V42__bug745_fix_mr_sealing_medical_record_id.sql diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V42__bug745_fix_mr_sealing_medical_record_id.sql b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V42__bug745_fix_mr_sealing_medical_record_id.sql new file mode 100644 index 000000000..04838066b --- /dev/null +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V42__bug745_fix_mr_sealing_medical_record_id.sql @@ -0,0 +1,3 @@ +-- Bug #745: mr_sealing.medical_record_id NOT NULL 导致前端不传该字段时 INSERT 报错 +-- 封存业务通过病案号手动录入,medicalRecordId 非必需,改为可空 +ALTER TABLE mr_sealing ALTER COLUMN medical_record_id DROP NOT NULL;