ALTER TABLE cli_allergy_intolerance ADD medication_id int8 NULL;
COMMENT ON COLUMN cli_allergy_intolerance.medication_id IS '药品定义id';

ALTER TABLE cli_allergy_intolerance ADD lot_number varchar(255) NULL;
COMMENT ON COLUMN cli_allergy_intolerance.lot_number IS '批次号';

ALTER TABLE cli_allergy_intolerance ADD encounter_id int8 NULL;
COMMENT ON COLUMN cli_allergy_intolerance.encounter_id IS '就诊id';
   -- Insert migration record
INSERT INTO __MigrationsHistory (MigrationId, ProductVersion)
VALUES ('202511221516 alter_table cli_allergy_intolerance', '1.0.0');