diff --git a/docs/list_of_tables_and_columns.rst b/docs/list_of_tables_and_columns.rst index 9763c840..bfd8e150 100644 --- a/docs/list_of_tables_and_columns.rst +++ b/docs/list_of_tables_and_columns.rst @@ -907,6 +907,8 @@ ``exposureTemperature``,float,"units: kelvin" ``experimentTypeId``,int,"" ``purificationColumnId``,int,"" + ``collectionMode``,enum,"The requested collection mode, possible values are auto, manual" + ``priority``,int,"The priority of this sample relative to others in the shipment" **EMMicroscope**,table,"" ``emMicroscopeId``,int,"" ``instrumentName``,varchar,"" diff --git a/schema/updates/2020_11_22_diffractionplan_priority_and_mode.sql b/schema/updates/2020_11_22_diffractionplan_priority_and_mode.sql new file mode 100644 index 00000000..1f720f38 --- /dev/null +++ b/schema/updates/2020_11_22_diffractionplan_priority_and_mode.sql @@ -0,0 +1,7 @@ +INSERT INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2020_11_22_diffractionplan_priority_and_mode.sql', 'ONGOING'); + +ALTER TABLE `DiffractionPlan` + ADD `collectionMode` ENUM('auto', 'manual') NULL COMMENT 'The requested collection mode, possible values are auto, manual', + ADD `priority` INT(4) NULL COMMENT 'The priority of this sample relative to others in the shipment'; + +UPDATE SchemaStatus SET schemaStatus = 'DONE' where scriptName = '2020_11_22_diffractionplan_priority_and_mode.sql';