diff --git a/schemas/ispyb/updates/2026_04_24_AutoProc_autoProcProgramId.sql b/schemas/ispyb/updates/2026_04_24_AutoProc_autoProcProgramId.sql new file mode 100644 index 0000000..2762ab8 --- /dev/null +++ b/schemas/ispyb/updates/2026_04_24_AutoProc_autoProcProgramId.sql @@ -0,0 +1,8 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2026_04_24_AutoProc_autoProcProgramId.sql', 'ONGOING'); + +ALTER TABLE AutoProc +ADD CONSTRAINT AutoProc_fk_autoProcProgramId +FOREIGN KEY (autoProcProgramId) + REFERENCES AutoProc (autoProcProgramId); + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2026_04_24_AutoProc_autoProcProgramId.sql';