diff --git a/HISTORY.rst b/HISTORY.rst index 24833df..904cb07 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -5,7 +5,16 @@ History Unreleased / master ------------------- -4.4.0 (2025-29-01) +4.5.0 (2025-02-25) +------------------- + +New or modified tables and columns: + +- Add ``purgedProcessedData`` boolean column to the ``BLSession`` table. This is +a flag to indicate whether the ``processed`` folder in the associated visit +directory has been purged. + +4.4.0 (2025-01-29) ------------------- New or modified tables and columns: diff --git a/schemas/ispyb/lookups.sql b/schemas/ispyb/lookups.sql index ca7fead..37fba1e 100644 --- a/schemas/ispyb/lookups.sql +++ b/schemas/ispyb/lookups.sql @@ -11,7 +11,7 @@ /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; /*!40000 ALTER TABLE `AdminVar` DISABLE KEYS */; -INSERT INTO `AdminVar` (`varId`, `name`, `value`) VALUES (4,'schemaVersion','4.4.0'); +INSERT INTO `AdminVar` (`varId`, `name`, `value`) VALUES (4,'schemaVersion','4.5.0'); /*!40000 ALTER TABLE `AdminVar` ENABLE KEYS */; /*!40000 ALTER TABLE `SchemaStatus` DISABLE KEYS */; @@ -273,7 +273,9 @@ INSERT INTO `SchemaStatus` (`schemaStatusId`, `scriptName`, `schemaStatus`, `rec (301,'2024_12_05_AdminVar_bump_version.sql','DONE','2024-12-05 13:27:18'), (302,'2025_01_08_ParticleClassificationGroup_binnedPixelSize.sql','DONE','2025-01-29 10:29:27'), (303,'2025_01_24_Tomogram_gridSquare.sql','DONE','2025-01-29 10:29:27'), -(304,'2025_01_29_AdminVar_bump_version.sql','DONE','2025-01-29 10:29:27'); +(304,'2025_01_29_AdminVar_bump_version.sql','DONE','2025-01-29 10:29:27'), +(305,'2025_02_14_BLSession_purgedProcessedData.sql','DONE','2025-02-25 15:51:29'), +(306,'2025_02_25_AdminVar_bump_version.sql','DONE','2025-02-25 15:51:30'); /*!40000 ALTER TABLE `SchemaStatus` ENABLE KEYS */; /*!40000 ALTER TABLE `ComponentType` DISABLE KEYS */; diff --git a/schemas/ispyb/tables.sql b/schemas/ispyb/tables.sql index 538b933..02bb099 100644 --- a/schemas/ispyb/tables.sql +++ b/schemas/ispyb/tables.sql @@ -12,7 +12,7 @@ /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `AdminActivity`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AdminActivity` ( `adminActivityId` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(45) NOT NULL DEFAULT '', @@ -26,7 +26,7 @@ CREATE TABLE `AdminActivity` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AdminVar`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AdminVar` ( `varId` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(32) DEFAULT NULL, @@ -38,7 +38,7 @@ CREATE TABLE `AdminVar` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Aperture`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Aperture` ( `apertureId` int(10) unsigned NOT NULL AUTO_INCREMENT, `sizeX` float DEFAULT NULL, @@ -47,7 +47,7 @@ CREATE TABLE `Aperture` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Atlas`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Atlas` ( `atlasId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionGroupId` int(11) NOT NULL, @@ -61,7 +61,7 @@ CREATE TABLE `Atlas` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AutoProc`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AutoProc` ( `autoProcId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `autoProcProgramId` int(10) unsigned DEFAULT NULL COMMENT 'Related program item', @@ -80,7 +80,7 @@ CREATE TABLE `AutoProc` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AutoProcIntegration`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AutoProcIntegration` ( `autoProcIntegrationId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `dataCollectionId` int(11) unsigned NOT NULL COMMENT 'DataCollection item', @@ -113,7 +113,7 @@ CREATE TABLE `AutoProcIntegration` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AutoProcProgram`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AutoProcProgram` ( `autoProcProgramId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `processingCommandLine` varchar(255) DEFAULT NULL COMMENT 'Command line for running the automatic processing', @@ -133,7 +133,7 @@ CREATE TABLE `AutoProcProgram` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AutoProcProgramAttachment`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AutoProcProgramAttachment` ( `autoProcProgramAttachmentId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `autoProcProgramId` int(10) unsigned NOT NULL COMMENT 'Related autoProcProgram item', @@ -150,7 +150,7 @@ CREATE TABLE `AutoProcProgramAttachment` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AutoProcProgramMessage`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AutoProcProgramMessage` ( `autoProcProgramMessageId` int(10) unsigned NOT NULL AUTO_INCREMENT, `autoProcProgramId` int(10) unsigned DEFAULT NULL, @@ -165,7 +165,7 @@ CREATE TABLE `AutoProcProgramMessage` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AutoProcScaling`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AutoProcScaling` ( `autoProcScalingId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `autoProcId` int(10) unsigned DEFAULT NULL COMMENT 'Related autoProc item (used by foreign key)', @@ -178,7 +178,7 @@ CREATE TABLE `AutoProcScaling` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AutoProcScalingStatistics`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AutoProcScalingStatistics` ( `autoProcScalingStatisticsId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `autoProcScalingId` int(10) unsigned DEFAULT NULL COMMENT 'Related autoProcScaling item (used by foreign key)', @@ -212,7 +212,7 @@ CREATE TABLE `AutoProcScalingStatistics` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AutoProcScaling_has_Int`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AutoProcScaling_has_Int` ( `autoProcScaling_has_IntId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `autoProcScalingId` int(10) unsigned DEFAULT NULL COMMENT 'AutoProcScaling item', @@ -227,7 +227,7 @@ CREATE TABLE `AutoProcScaling_has_Int` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `AutoProcStatus`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `AutoProcStatus` ( `autoProcStatusId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `autoProcIntegrationId` int(10) unsigned NOT NULL, @@ -242,7 +242,7 @@ CREATE TABLE `AutoProcStatus` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BF_automationError`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BF_automationError` ( `automationErrorId` int(10) unsigned NOT NULL AUTO_INCREMENT, `errorType` varchar(40) NOT NULL, @@ -252,7 +252,7 @@ CREATE TABLE `BF_automationError` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BF_automationFault`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BF_automationFault` ( `automationFaultId` int(10) unsigned NOT NULL AUTO_INCREMENT, `automationErrorId` int(10) unsigned DEFAULT NULL, @@ -270,7 +270,7 @@ CREATE TABLE `BF_automationFault` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BF_component`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BF_component` ( `componentId` int(10) unsigned NOT NULL AUTO_INCREMENT, `systemId` int(10) unsigned DEFAULT NULL, @@ -283,7 +283,7 @@ CREATE TABLE `BF_component` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BF_component_beamline`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BF_component_beamline` ( `component_beamlineId` int(10) unsigned NOT NULL AUTO_INCREMENT, `componentId` int(10) unsigned DEFAULT NULL, @@ -295,7 +295,7 @@ CREATE TABLE `BF_component_beamline` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BF_fault`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BF_fault` ( `faultId` int(10) unsigned NOT NULL AUTO_INCREMENT, `sessionId` int(10) unsigned NOT NULL, @@ -328,7 +328,7 @@ CREATE TABLE `BF_fault` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BF_subcomponent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BF_subcomponent` ( `subcomponentId` int(10) unsigned NOT NULL AUTO_INCREMENT, `componentId` int(10) unsigned DEFAULT NULL, @@ -341,7 +341,7 @@ CREATE TABLE `BF_subcomponent` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BF_subcomponent_beamline`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BF_subcomponent_beamline` ( `subcomponent_beamlineId` int(10) unsigned NOT NULL AUTO_INCREMENT, `subcomponentId` int(10) unsigned DEFAULT NULL, @@ -353,7 +353,7 @@ CREATE TABLE `BF_subcomponent_beamline` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BF_system`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BF_system` ( `systemId` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, @@ -363,7 +363,7 @@ CREATE TABLE `BF_system` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BF_system_beamline`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BF_system_beamline` ( `system_beamlineId` int(10) unsigned NOT NULL AUTO_INCREMENT, `systemId` int(10) unsigned DEFAULT NULL, @@ -375,7 +375,7 @@ CREATE TABLE `BF_system_beamline` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BFactorFit`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BFactorFit` ( `bFactorFitId` int(11) unsigned NOT NULL AUTO_INCREMENT, `particleClassificationId` int(11) unsigned NOT NULL, @@ -389,7 +389,7 @@ CREATE TABLE `BFactorFit` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSample`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSample` ( `blSampleId` int(10) unsigned NOT NULL AUTO_INCREMENT, `diffractionPlanId` int(10) unsigned DEFAULT NULL, @@ -449,7 +449,7 @@ CREATE TABLE `BLSample` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleGroup` ( `blSampleGroupId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL COMMENT 'Human-readable name', @@ -464,7 +464,7 @@ CREATE TABLE `BLSampleGroup` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleGroup_has_BLSample`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleGroup_has_BLSample` ( `blSampleGroupId` int(11) unsigned NOT NULL, `blSampleId` int(11) unsigned NOT NULL, @@ -481,7 +481,7 @@ CREATE TABLE `BLSampleGroup_has_BLSample` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleImage`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleImage` ( `blSampleImageId` int(11) unsigned NOT NULL AUTO_INCREMENT, `blSampleId` int(11) unsigned NOT NULL, @@ -507,7 +507,7 @@ CREATE TABLE `BLSampleImage` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleImageAnalysis`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleImageAnalysis` ( `blSampleImageAnalysisId` int(11) unsigned NOT NULL AUTO_INCREMENT, `blSampleImageId` int(11) unsigned DEFAULT NULL, @@ -527,7 +527,7 @@ CREATE TABLE `BLSampleImageAnalysis` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleImageAutoScoreClass`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleImageAutoScoreClass` ( `blSampleImageAutoScoreClassId` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `blSampleImageAutoScoreSchemaId` tinyint(3) unsigned DEFAULT NULL, @@ -539,7 +539,7 @@ CREATE TABLE `BLSampleImageAutoScoreClass` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleImageAutoScoreSchema`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleImageAutoScoreSchema` ( `blSampleImageAutoScoreSchemaId` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `schemaName` varchar(25) NOT NULL COMMENT 'Name of the schema e.g. Hampton, MARCO', @@ -549,7 +549,7 @@ CREATE TABLE `BLSampleImageAutoScoreSchema` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleImageMeasurement`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleImageMeasurement` ( `blSampleImageMeasurementId` int(11) unsigned NOT NULL AUTO_INCREMENT, `blSampleImageId` int(11) unsigned NOT NULL, @@ -568,7 +568,7 @@ CREATE TABLE `BLSampleImageMeasurement` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleImageScore`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleImageScore` ( `blSampleImageScoreId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, @@ -579,7 +579,7 @@ CREATE TABLE `BLSampleImageScore` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleImage_has_AutoScoreClass`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleImage_has_AutoScoreClass` ( `blSampleImageId` int(11) unsigned NOT NULL, `blSampleImageAutoScoreClassId` tinyint(3) unsigned NOT NULL, @@ -592,7 +592,7 @@ CREATE TABLE `BLSampleImage_has_AutoScoreClass` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleImage_has_Positioner`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleImage_has_Positioner` ( `blSampleImageHasPositionerId` int(10) unsigned NOT NULL AUTO_INCREMENT, `blSampleImageId` int(10) unsigned NOT NULL, @@ -607,7 +607,7 @@ CREATE TABLE `BLSampleImage_has_Positioner` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleType` ( `blSampleTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, @@ -618,7 +618,7 @@ CREATE TABLE `BLSampleType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSampleType_has_Component`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSampleType_has_Component` ( `blSampleTypeId` int(10) unsigned NOT NULL, `componentId` int(10) unsigned NOT NULL, @@ -631,7 +631,7 @@ CREATE TABLE `BLSampleType_has_Component` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSample_has_DataCollectionPlan`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSample_has_DataCollectionPlan` ( `blSampleId` int(11) unsigned NOT NULL, `dataCollectionPlanId` int(11) unsigned NOT NULL, @@ -644,7 +644,7 @@ CREATE TABLE `BLSample_has_DataCollectionPlan` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSample_has_EnergyScan`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSample_has_EnergyScan` ( `blSampleId` int(10) unsigned NOT NULL DEFAULT 0, `energyScanId` int(10) unsigned NOT NULL DEFAULT 0, @@ -658,7 +658,7 @@ CREATE TABLE `BLSample_has_EnergyScan` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSample_has_Positioner`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSample_has_Positioner` ( `blSampleHasPositioner` int(10) unsigned NOT NULL AUTO_INCREMENT, `blSampleId` int(10) unsigned NOT NULL, @@ -672,7 +672,7 @@ CREATE TABLE `BLSample_has_Positioner` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSession`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSession` ( `sessionId` int(10) unsigned NOT NULL AUTO_INCREMENT, `beamLineSetupId` int(10) unsigned DEFAULT NULL, @@ -692,6 +692,7 @@ CREATE TABLE `BLSession` ( `externalId` binary(16) DEFAULT NULL, `archived` tinyint(1) DEFAULT 0 COMMENT 'The data for the session is archived and no longer available on disk', `riskRating` enum('Low','Medium','High','Not Permitted') DEFAULT NULL COMMENT 'ERA in user admin system', + `purgedProcessedData` tinyint(1) DEFAULT 0 COMMENT 'Flag to indicate whether the processed folder in the associated visit directory has been purged', PRIMARY KEY (`sessionId`), UNIQUE KEY `proposalId` (`proposalId`,`visit_number`), KEY `Session_FKIndex2` (`beamLineSetupId`), @@ -706,7 +707,7 @@ CREATE TABLE `BLSession` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSession_has_SCPosition`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSession_has_SCPosition` ( `blsessionhasscpositionid` int(11) unsigned NOT NULL AUTO_INCREMENT, `blsessionid` int(11) unsigned NOT NULL, @@ -719,7 +720,7 @@ CREATE TABLE `BLSession_has_SCPosition` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSubSample`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSubSample` ( `blSubSampleId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `blSampleId` int(10) unsigned NOT NULL COMMENT 'sample', @@ -752,7 +753,7 @@ CREATE TABLE `BLSubSample` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BLSubSample_has_Positioner`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BLSubSample_has_Positioner` ( `blSubSampleHasPositioner` int(10) unsigned NOT NULL AUTO_INCREMENT, `blSubSampleId` int(10) unsigned NOT NULL, @@ -766,7 +767,7 @@ CREATE TABLE `BLSubSample_has_Positioner` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BeamApertures`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BeamApertures` ( `beamAperturesid` int(11) unsigned NOT NULL AUTO_INCREMENT, `beamlineStatsId` int(11) unsigned DEFAULT NULL, @@ -781,7 +782,7 @@ CREATE TABLE `BeamApertures` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BeamCalendar`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BeamCalendar` ( `beamCalendarId` int(10) unsigned NOT NULL AUTO_INCREMENT, `run` varchar(7) NOT NULL, @@ -793,7 +794,7 @@ CREATE TABLE `BeamCalendar` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BeamCentres`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BeamCentres` ( `beamCentresid` int(11) unsigned NOT NULL AUTO_INCREMENT, `beamlineStatsId` int(11) unsigned DEFAULT NULL, @@ -807,7 +808,7 @@ CREATE TABLE `BeamCentres` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BeamLineSetup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BeamLineSetup` ( `beamLineSetupId` int(10) unsigned NOT NULL AUTO_INCREMENT, `detectorId` int(11) DEFAULT NULL, @@ -864,7 +865,7 @@ CREATE TABLE `BeamLineSetup` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BeamlineAction`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BeamlineAction` ( `beamlineActionId` int(11) unsigned NOT NULL AUTO_INCREMENT, `sessionId` int(11) unsigned DEFAULT NULL, @@ -882,7 +883,7 @@ CREATE TABLE `BeamlineAction` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `BeamlineStats`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `BeamlineStats` ( `beamlineStatsId` int(11) unsigned NOT NULL AUTO_INCREMENT, `beamline` varchar(10) DEFAULT NULL, @@ -900,7 +901,7 @@ CREATE TABLE `BeamlineStats` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `CTF`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `CTF` ( `ctfId` int(11) unsigned NOT NULL AUTO_INCREMENT, `motionCorrectionId` int(11) unsigned DEFAULT NULL, @@ -929,7 +930,7 @@ CREATE TABLE `CTF` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `CalendarHash`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `CalendarHash` ( `calendarHashId` int(10) unsigned NOT NULL AUTO_INCREMENT, `ckey` varchar(50) DEFAULT NULL, @@ -940,7 +941,7 @@ CREATE TABLE `CalendarHash` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Component`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Component` ( `componentId` int(11) unsigned NOT NULL AUTO_INCREMENT, `componentTypeId` int(11) unsigned NOT NULL, @@ -956,7 +957,7 @@ CREATE TABLE `Component` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ComponentLattice`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ComponentLattice` ( `componentLatticeId` int(11) unsigned NOT NULL AUTO_INCREMENT, `componentId` int(10) unsigned DEFAULT NULL, @@ -974,7 +975,7 @@ CREATE TABLE `ComponentLattice` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ComponentSubType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ComponentSubType` ( `componentSubTypeId` int(11) unsigned NOT NULL, `name` varchar(31) NOT NULL, @@ -986,7 +987,7 @@ CREATE TABLE `ComponentSubType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ComponentType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ComponentType` ( `componentTypeId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(31) NOT NULL, @@ -996,7 +997,7 @@ CREATE TABLE `ComponentType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Component_has_SubType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Component_has_SubType` ( `componentId` int(10) unsigned NOT NULL, `componentSubTypeId` int(11) unsigned NOT NULL, @@ -1008,7 +1009,7 @@ CREATE TABLE `Component_has_SubType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ConcentrationType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ConcentrationType` ( `concentrationTypeId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(31) NOT NULL, @@ -1020,7 +1021,7 @@ CREATE TABLE `ConcentrationType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Container`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Container` ( `containerId` int(10) unsigned NOT NULL AUTO_INCREMENT, `dewarId` int(10) unsigned DEFAULT NULL, @@ -1084,7 +1085,7 @@ CREATE TABLE `Container` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ContainerHistory`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ContainerHistory` ( `containerHistoryId` int(11) unsigned NOT NULL AUTO_INCREMENT, `containerId` int(10) unsigned DEFAULT NULL, @@ -1102,7 +1103,7 @@ CREATE TABLE `ContainerHistory` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ContainerInspection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ContainerInspection` ( `containerInspectionId` int(11) unsigned NOT NULL AUTO_INCREMENT, `containerId` int(11) unsigned NOT NULL, @@ -1129,7 +1130,7 @@ CREATE TABLE `ContainerInspection` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ContainerQueue`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ContainerQueue` ( `containerQueueId` int(11) unsigned NOT NULL AUTO_INCREMENT, `containerId` int(10) unsigned NOT NULL, @@ -1146,7 +1147,7 @@ CREATE TABLE `ContainerQueue` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ContainerQueueSample`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ContainerQueueSample` ( `containerQueueSampleId` int(11) unsigned NOT NULL AUTO_INCREMENT, `containerQueueId` int(11) unsigned DEFAULT NULL, @@ -1169,7 +1170,7 @@ CREATE TABLE `ContainerQueueSample` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ContainerRegistry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ContainerRegistry` ( `containerRegistryId` int(11) unsigned NOT NULL AUTO_INCREMENT, `barcode` varchar(20) NOT NULL, @@ -1181,7 +1182,7 @@ CREATE TABLE `ContainerRegistry` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ContainerRegistry_has_Proposal`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ContainerRegistry_has_Proposal` ( `containerRegistryHasProposalId` int(11) unsigned NOT NULL AUTO_INCREMENT, `containerRegistryId` int(11) unsigned DEFAULT NULL, @@ -1199,7 +1200,7 @@ CREATE TABLE `ContainerRegistry_has_Proposal` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ContainerReport`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ContainerReport` ( `containerReportId` int(11) unsigned NOT NULL AUTO_INCREMENT, `containerRegistryId` int(11) unsigned DEFAULT NULL, @@ -1216,7 +1217,7 @@ CREATE TABLE `ContainerReport` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ContainerType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ContainerType` ( `containerTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, @@ -1236,7 +1237,7 @@ CREATE TABLE `ContainerType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `CourierTermsAccepted`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `CourierTermsAccepted` ( `courierTermsAcceptedId` int(10) unsigned NOT NULL AUTO_INCREMENT, `proposalId` int(10) unsigned NOT NULL, @@ -1255,7 +1256,7 @@ CREATE TABLE `CourierTermsAccepted` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `CryoemInitialModel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `CryoemInitialModel` ( `cryoemInitialModelId` int(10) unsigned NOT NULL AUTO_INCREMENT, `resolution` float DEFAULT NULL COMMENT 'Unit: Angstroms', @@ -1265,7 +1266,7 @@ CREATE TABLE `CryoemInitialModel` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Crystal`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Crystal` ( `crystalId` int(10) unsigned NOT NULL AUTO_INCREMENT, `diffractionPlanId` int(10) unsigned DEFAULT NULL, @@ -1299,7 +1300,7 @@ CREATE TABLE `Crystal` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `CrystalComposition`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `CrystalComposition` ( `crystalCompositionId` int(11) unsigned NOT NULL AUTO_INCREMENT, `componentId` int(11) unsigned NOT NULL, @@ -1319,7 +1320,7 @@ CREATE TABLE `CrystalComposition` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Crystal_has_UUID`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Crystal_has_UUID` ( `crystal_has_UUID_Id` int(10) unsigned NOT NULL AUTO_INCREMENT, `crystalId` int(10) unsigned NOT NULL, @@ -1333,7 +1334,7 @@ CREATE TABLE `Crystal_has_UUID` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DataAcquisition`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DataAcquisition` ( `dataAcquisitionId` int(10) NOT NULL AUTO_INCREMENT, `sampleCellId` int(10) NOT NULL, @@ -1346,7 +1347,7 @@ CREATE TABLE `DataAcquisition` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DataCollection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DataCollection` ( `dataCollectionId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `BLSAMPLEID` int(11) unsigned DEFAULT NULL, @@ -1477,7 +1478,7 @@ CREATE TABLE `DataCollection` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DataCollectionComment`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DataCollectionComment` ( `dataCollectionCommentId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned NOT NULL, @@ -1494,7 +1495,7 @@ CREATE TABLE `DataCollectionComment` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DataCollectionFileAttachment`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DataCollectionFileAttachment` ( `dataCollectionFileAttachmentId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned NOT NULL, @@ -1508,7 +1509,7 @@ CREATE TABLE `DataCollectionFileAttachment` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DataCollectionGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DataCollectionGroup` ( `dataCollectionGroupId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `sessionId` int(10) unsigned NOT NULL COMMENT 'references Session table', @@ -1537,7 +1538,7 @@ CREATE TABLE `DataCollectionGroup` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DataCollectionPlan_has_Detector`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DataCollectionPlan_has_Detector` ( `dataCollectionPlanHasDetectorId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionPlanId` int(11) unsigned NOT NULL, @@ -1554,7 +1555,7 @@ CREATE TABLE `DataCollectionPlan_has_Detector` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Detector`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Detector` ( `detectorId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `detectorType` varchar(255) DEFAULT NULL, @@ -1590,7 +1591,7 @@ CREATE TABLE `Detector` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Dewar`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Dewar` ( `dewarId` int(10) unsigned NOT NULL AUTO_INCREMENT, `shippingId` int(10) unsigned NOT NULL, @@ -1625,7 +1626,7 @@ CREATE TABLE `Dewar` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DewarLocation`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DewarLocation` ( `eventId` int(10) unsigned NOT NULL AUTO_INCREMENT, `dewarNumber` varchar(128) NOT NULL COMMENT 'Dewar number', @@ -1639,7 +1640,7 @@ CREATE TABLE `DewarLocation` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DewarLocationList`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DewarLocationList` ( `locationId` int(10) unsigned NOT NULL AUTO_INCREMENT, `locationName` varchar(128) NOT NULL DEFAULT '' COMMENT 'Location', @@ -1648,7 +1649,7 @@ CREATE TABLE `DewarLocationList` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DewarRegistry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DewarRegistry` ( `dewarRegistryId` int(11) unsigned NOT NULL AUTO_INCREMENT, `facilityCode` varchar(20) NOT NULL, @@ -1667,7 +1668,7 @@ CREATE TABLE `DewarRegistry` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DewarRegistry_has_Proposal`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DewarRegistry_has_Proposal` ( `dewarRegistryHasProposalId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dewarRegistryId` int(11) unsigned DEFAULT NULL, @@ -1688,7 +1689,7 @@ CREATE TABLE `DewarRegistry_has_Proposal` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DewarReport`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DewarReport` ( `dewarReportId` int(11) unsigned NOT NULL AUTO_INCREMENT, `facilityCode` varchar(20) NOT NULL, @@ -1702,7 +1703,7 @@ CREATE TABLE `DewarReport` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DewarTransportHistory`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DewarTransportHistory` ( `DewarTransportHistoryId` int(10) unsigned NOT NULL AUTO_INCREMENT, `dewarId` int(10) unsigned DEFAULT NULL, @@ -1716,7 +1717,7 @@ CREATE TABLE `DewarTransportHistory` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `DiffractionPlan`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `DiffractionPlan` ( `diffractionPlanId` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) DEFAULT NULL, @@ -1794,7 +1795,7 @@ CREATE TABLE `DiffractionPlan` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `EnergyScan`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `EnergyScan` ( `energyScanId` int(10) unsigned NOT NULL AUTO_INCREMENT, `sessionId` int(10) unsigned NOT NULL, @@ -1841,7 +1842,7 @@ CREATE TABLE `EnergyScan` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Event`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Event` ( `eventId` int(11) unsigned NOT NULL AUTO_INCREMENT, `eventChainId` int(11) unsigned NOT NULL, @@ -1863,7 +1864,7 @@ CREATE TABLE `Event` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `EventChain`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `EventChain` ( `eventChainId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned NOT NULL, @@ -1875,7 +1876,7 @@ CREATE TABLE `EventChain` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `EventType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `EventType` ( `eventTypeId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, @@ -1885,7 +1886,7 @@ CREATE TABLE `EventType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ExperimentKindDetails`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ExperimentKindDetails` ( `experimentKindId` int(10) unsigned NOT NULL AUTO_INCREMENT, `diffractionPlanId` int(10) unsigned NOT NULL, @@ -1900,7 +1901,7 @@ CREATE TABLE `ExperimentKindDetails` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ExperimentType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ExperimentType` ( `experimentTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, @@ -1911,7 +1912,7 @@ CREATE TABLE `ExperimentType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `FoilHole`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `FoilHole` ( `foilHoleId` int(11) unsigned NOT NULL AUTO_INCREMENT, `gridSquareId` int(11) unsigned NOT NULL, @@ -1931,7 +1932,7 @@ CREATE TABLE `FoilHole` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `GeometryClassname`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `GeometryClassname` ( `geometryClassnameId` int(11) unsigned NOT NULL AUTO_INCREMENT, `geometryClassname` varchar(45) DEFAULT NULL, @@ -1941,7 +1942,7 @@ CREATE TABLE `GeometryClassname` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `GridImageMap`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `GridImageMap` ( `gridImageMapId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned DEFAULT NULL, @@ -1956,7 +1957,7 @@ CREATE TABLE `GridImageMap` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `GridInfo`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `GridInfo` ( `gridInfoId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `xOffset` double DEFAULT NULL, @@ -1990,7 +1991,7 @@ CREATE TABLE `GridInfo` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `GridSquare`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `GridSquare` ( `gridSquareId` int(11) unsigned NOT NULL AUTO_INCREMENT, `atlasId` int(11) unsigned NOT NULL, @@ -2012,7 +2013,7 @@ CREATE TABLE `GridSquare` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Image`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Image` ( `imageId` int(12) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned NOT NULL DEFAULT 0, @@ -2041,7 +2042,7 @@ CREATE TABLE `Image` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ImageQualityIndicators`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ImageQualityIndicators` ( `dataCollectionId` int(11) unsigned NOT NULL, `imageNumber` mediumint(8) unsigned NOT NULL, @@ -2066,7 +2067,7 @@ CREATE TABLE `ImageQualityIndicators` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Imager`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Imager` ( `imagerId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, @@ -2078,7 +2079,7 @@ CREATE TABLE `Imager` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `InspectionType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `InspectionType` ( `inspectionTypeId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, @@ -2087,7 +2088,7 @@ CREATE TABLE `InspectionType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `IspybCrystalClass`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `IspybCrystalClass` ( `crystalClassId` int(11) NOT NULL AUTO_INCREMENT, `crystalClass_code` varchar(20) NOT NULL, @@ -2097,7 +2098,7 @@ CREATE TABLE `IspybCrystalClass` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `IspybReference`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `IspybReference` ( `referenceId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `referenceName` varchar(255) DEFAULT NULL COMMENT 'reference name', @@ -2109,7 +2110,7 @@ CREATE TABLE `IspybReference` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `LDAPSearchBase`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `LDAPSearchBase` ( `ldapSearchBaseId` int(11) unsigned NOT NULL AUTO_INCREMENT, `ldapSearchParametersId` int(11) unsigned NOT NULL COMMENT 'The other LDAP search parameters to be used with this search base', @@ -2122,7 +2123,7 @@ CREATE TABLE `LDAPSearchBase` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `LDAPSearchParameters`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `LDAPSearchParameters` ( `ldapSearchParametersId` int(11) unsigned NOT NULL AUTO_INCREMENT, `accountType` enum('group_member','staff_account','functional_account') NOT NULL COMMENT 'The entity type returned by the search', @@ -2136,7 +2137,7 @@ CREATE TABLE `LDAPSearchParameters` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `LabContact`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `LabContact` ( `labContactId` int(10) unsigned NOT NULL AUTO_INCREMENT, `personId` int(10) unsigned NOT NULL, @@ -2158,7 +2159,7 @@ CREATE TABLE `LabContact` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Laboratory`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Laboratory` ( `laboratoryId` int(10) unsigned NOT NULL AUTO_INCREMENT, `laboratoryUUID` varchar(45) DEFAULT NULL, @@ -2177,7 +2178,7 @@ CREATE TABLE `Laboratory` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `MXMRRun`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `MXMRRun` ( `mxMRRunId` int(11) unsigned NOT NULL AUTO_INCREMENT, `autoProcScalingId` int(11) unsigned NOT NULL, @@ -2198,7 +2199,7 @@ CREATE TABLE `MXMRRun` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `MXMRRunBlob`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `MXMRRunBlob` ( `mxMRRunBlobId` int(11) unsigned NOT NULL AUTO_INCREMENT, `mxMRRunId` int(11) unsigned NOT NULL, @@ -2224,7 +2225,7 @@ CREATE TABLE `MXMRRunBlob` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ModelBuilding`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ModelBuilding` ( `modelBuildingId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `phasingAnalysisId` int(11) unsigned NOT NULL COMMENT 'Related phasing analysis item', @@ -2244,7 +2245,7 @@ CREATE TABLE `ModelBuilding` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `MotionCorrection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `MotionCorrection` ( `motionCorrectionId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned DEFAULT NULL, @@ -2276,7 +2277,7 @@ CREATE TABLE `MotionCorrection` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `MotorPosition`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `MotorPosition` ( `motorPositionId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `phiX` double DEFAULT NULL, @@ -2296,7 +2297,7 @@ CREATE TABLE `MotorPosition` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Movie`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Movie` ( `movieId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned DEFAULT NULL, @@ -2320,7 +2321,7 @@ CREATE TABLE `Movie` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PDB`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PDB` ( `pdbId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, @@ -2332,7 +2333,7 @@ CREATE TABLE `PDB` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PDBEntry`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PDBEntry` ( `pdbEntryId` int(11) unsigned NOT NULL AUTO_INCREMENT, `autoProcProgramId` int(11) unsigned NOT NULL, @@ -2361,7 +2362,7 @@ CREATE TABLE `PDBEntry` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PDBEntry_has_AutoProcProgram`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PDBEntry_has_AutoProcProgram` ( `pdbEntryHasAutoProcId` int(11) unsigned NOT NULL AUTO_INCREMENT, `pdbEntryId` int(11) unsigned NOT NULL, @@ -2376,7 +2377,7 @@ CREATE TABLE `PDBEntry_has_AutoProcProgram` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ParticleClassification`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ParticleClassification` ( `particleClassificationId` int(10) unsigned NOT NULL AUTO_INCREMENT, `classNumber` int(10) unsigned DEFAULT NULL COMMENT 'Identified of the class. A unique ID given by Relion', @@ -2399,7 +2400,7 @@ CREATE TABLE `ParticleClassification` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ParticleClassificationGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ParticleClassificationGroup` ( `particleClassificationGroupId` int(10) unsigned NOT NULL AUTO_INCREMENT, `particlePickerId` int(10) unsigned DEFAULT NULL, @@ -2419,7 +2420,7 @@ CREATE TABLE `ParticleClassificationGroup` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ParticleClassification_has_CryoemInitialModel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ParticleClassification_has_CryoemInitialModel` ( `particleClassificationId` int(10) unsigned NOT NULL, `cryoemInitialModelId` int(10) unsigned NOT NULL, @@ -2431,7 +2432,7 @@ CREATE TABLE `ParticleClassification_has_CryoemInitialModel` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ParticlePicker`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ParticlePicker` ( `particlePickerId` int(10) unsigned NOT NULL AUTO_INCREMENT, `programId` int(10) unsigned DEFAULT NULL, @@ -2449,7 +2450,7 @@ CREATE TABLE `ParticlePicker` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Permission`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Permission` ( `permissionId` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(15) NOT NULL, @@ -2459,7 +2460,7 @@ CREATE TABLE `Permission` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Person`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Person` ( `personId` int(10) unsigned NOT NULL AUTO_INCREMENT, `laboratoryId` int(10) unsigned DEFAULT NULL, @@ -2485,7 +2486,7 @@ CREATE TABLE `Person` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Phasing`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Phasing` ( `phasingId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `phasingAnalysisId` int(11) unsigned NOT NULL COMMENT 'Related phasing analysis item', @@ -2508,7 +2509,7 @@ CREATE TABLE `Phasing` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PhasingAnalysis`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PhasingAnalysis` ( `phasingAnalysisId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `recordTimeStamp` datetime DEFAULT NULL COMMENT 'Creation or last update date/time', @@ -2517,7 +2518,7 @@ CREATE TABLE `PhasingAnalysis` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PhasingProgramAttachment`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PhasingProgramAttachment` ( `phasingProgramAttachmentId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `phasingProgramRunId` int(11) unsigned NOT NULL COMMENT 'Related program item', @@ -2532,7 +2533,7 @@ CREATE TABLE `PhasingProgramAttachment` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PhasingProgramRun`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PhasingProgramRun` ( `phasingProgramRunId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `phasingCommandLine` varchar(255) DEFAULT NULL COMMENT 'Command line for phasing', @@ -2548,7 +2549,7 @@ CREATE TABLE `PhasingProgramRun` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PhasingStatistics`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PhasingStatistics` ( `phasingStatisticsId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `phasingHasScalingId1` int(11) unsigned NOT NULL COMMENT 'the dataset in question', @@ -2573,7 +2574,7 @@ CREATE TABLE `PhasingStatistics` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PhasingStep`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PhasingStep` ( `phasingStepId` int(10) unsigned NOT NULL AUTO_INCREMENT, `previousPhasingStepId` int(10) unsigned DEFAULT NULL, @@ -2600,7 +2601,7 @@ CREATE TABLE `PhasingStep` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Phasing_has_Scaling`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Phasing_has_Scaling` ( `phasingHasScalingId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `phasingAnalysisId` int(11) unsigned NOT NULL COMMENT 'Related phasing analysis item', @@ -2616,7 +2617,7 @@ CREATE TABLE `Phasing_has_Scaling` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Position`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Position` ( `positionId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `relativePositionId` int(11) unsigned DEFAULT NULL COMMENT 'relative position, null otherwise', @@ -2635,7 +2636,7 @@ CREATE TABLE `Position` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Positioner`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Positioner` ( `positionerId` int(10) unsigned NOT NULL AUTO_INCREMENT, `positioner` varchar(50) NOT NULL, @@ -2645,7 +2646,7 @@ CREATE TABLE `Positioner` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PreparePhasingData`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PreparePhasingData` ( `preparePhasingDataId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `phasingAnalysisId` int(11) unsigned NOT NULL COMMENT 'Related phasing analysis item', @@ -2665,7 +2666,7 @@ CREATE TABLE `PreparePhasingData` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ProcessedTomogram`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ProcessedTomogram` ( `processedTomogramId` int(11) unsigned NOT NULL AUTO_INCREMENT, `tomogramId` int(11) unsigned NOT NULL COMMENT 'references Tomogram table', @@ -2678,7 +2679,7 @@ CREATE TABLE `ProcessedTomogram` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ProcessingJob`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ProcessingJob` ( `processingJobId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned DEFAULT NULL, @@ -2694,7 +2695,7 @@ CREATE TABLE `ProcessingJob` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ProcessingJobImageSweep`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ProcessingJobImageSweep` ( `processingJobImageSweepId` int(11) unsigned NOT NULL AUTO_INCREMENT, `processingJobId` int(11) unsigned DEFAULT NULL, @@ -2710,7 +2711,7 @@ CREATE TABLE `ProcessingJobImageSweep` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ProcessingJobParameter`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ProcessingJobParameter` ( `processingJobParameterId` int(11) unsigned NOT NULL AUTO_INCREMENT, `processingJobId` int(11) unsigned DEFAULT NULL, @@ -2724,7 +2725,7 @@ CREATE TABLE `ProcessingJobParameter` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ProcessingPipeline`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ProcessingPipeline` ( `processingPipelineId` int(11) unsigned NOT NULL AUTO_INCREMENT, `processingPipelineCategoryId` int(11) unsigned DEFAULT NULL, @@ -2739,7 +2740,7 @@ CREATE TABLE `ProcessingPipeline` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ProcessingPipelineCategory`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ProcessingPipelineCategory` ( `processingPipelineCategoryId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, @@ -2748,7 +2749,7 @@ CREATE TABLE `ProcessingPipelineCategory` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project` ( `projectId` int(11) unsigned NOT NULL AUTO_INCREMENT, `personId` int(11) unsigned DEFAULT NULL, @@ -2762,7 +2763,7 @@ CREATE TABLE `Project` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project_has_BLSample`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project_has_BLSample` ( `projectId` int(11) unsigned NOT NULL, `blSampleId` int(11) unsigned NOT NULL, @@ -2774,7 +2775,7 @@ CREATE TABLE `Project_has_BLSample` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project_has_DCGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project_has_DCGroup` ( `projectId` int(11) unsigned NOT NULL, `dataCollectionGroupId` int(11) NOT NULL, @@ -2786,7 +2787,7 @@ CREATE TABLE `Project_has_DCGroup` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project_has_EnergyScan`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project_has_EnergyScan` ( `projectId` int(11) unsigned NOT NULL, `energyScanId` int(11) unsigned NOT NULL, @@ -2798,7 +2799,7 @@ CREATE TABLE `Project_has_EnergyScan` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project_has_Person`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project_has_Person` ( `projectId` int(11) unsigned NOT NULL, `personId` int(11) unsigned NOT NULL, @@ -2810,7 +2811,7 @@ CREATE TABLE `Project_has_Person` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project_has_Protein`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project_has_Protein` ( `projectId` int(11) unsigned NOT NULL, `proteinId` int(11) unsigned NOT NULL, @@ -2822,7 +2823,7 @@ CREATE TABLE `Project_has_Protein` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project_has_Session`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project_has_Session` ( `projectId` int(11) unsigned NOT NULL, `sessionId` int(11) unsigned NOT NULL, @@ -2834,7 +2835,7 @@ CREATE TABLE `Project_has_Session` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project_has_Shipping`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project_has_Shipping` ( `projectId` int(11) unsigned NOT NULL, `shippingId` int(11) unsigned NOT NULL, @@ -2846,7 +2847,7 @@ CREATE TABLE `Project_has_Shipping` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project_has_User`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project_has_User` ( `projecthasuserid` int(11) unsigned NOT NULL AUTO_INCREMENT, `projectid` int(11) unsigned NOT NULL, @@ -2858,7 +2859,7 @@ CREATE TABLE `Project_has_User` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Project_has_XFEFSpectrum`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Project_has_XFEFSpectrum` ( `projectId` int(11) unsigned NOT NULL, `xfeFluorescenceSpectrumId` int(11) unsigned NOT NULL, @@ -2870,7 +2871,7 @@ CREATE TABLE `Project_has_XFEFSpectrum` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Proposal`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Proposal` ( `proposalId` int(10) unsigned NOT NULL AUTO_INCREMENT, `personId` int(10) unsigned NOT NULL DEFAULT 0, @@ -2889,7 +2890,7 @@ CREATE TABLE `Proposal` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ProposalHasPerson`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ProposalHasPerson` ( `proposalHasPersonId` int(10) unsigned NOT NULL AUTO_INCREMENT, `proposalId` int(10) unsigned NOT NULL, @@ -2904,7 +2905,7 @@ CREATE TABLE `ProposalHasPerson` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Protein`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Protein` ( `proteinId` int(10) unsigned NOT NULL AUTO_INCREMENT, `proposalId` int(10) unsigned NOT NULL DEFAULT 0, @@ -2941,7 +2942,7 @@ CREATE TABLE `Protein` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Protein_has_PDB`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Protein_has_PDB` ( `proteinhaspdbid` int(11) unsigned NOT NULL AUTO_INCREMENT, `proteinid` int(11) unsigned NOT NULL, @@ -2955,7 +2956,7 @@ CREATE TABLE `Protein_has_PDB` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `PurificationColumn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `PurificationColumn` ( `purificationColumnId` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, @@ -2965,7 +2966,7 @@ CREATE TABLE `PurificationColumn` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `RelativeIceThickness`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `RelativeIceThickness` ( `relativeIceThicknessId` int(11) unsigned NOT NULL AUTO_INCREMENT, `motionCorrectionId` int(11) unsigned DEFAULT NULL, @@ -2984,7 +2985,7 @@ CREATE TABLE `RelativeIceThickness` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `RobotAction`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `RobotAction` ( `robotActionId` int(11) unsigned NOT NULL AUTO_INCREMENT, `blsessionId` int(11) unsigned NOT NULL, @@ -3008,7 +3009,7 @@ CREATE TABLE `RobotAction` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `SSXDataCollection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `SSXDataCollection` ( `dataCollectionId` int(11) unsigned NOT NULL COMMENT 'Primary key is same as dataCollection (1 to 1).', `repetitionRate` float DEFAULT NULL, @@ -3027,7 +3028,7 @@ CREATE TABLE `SSXDataCollection` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `SW_onceToken`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `SW_onceToken` ( `onceTokenId` int(11) unsigned NOT NULL AUTO_INCREMENT, `token` varchar(128) DEFAULT NULL, @@ -3045,7 +3046,7 @@ CREATE TABLE `SW_onceToken` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `SampleComposition`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `SampleComposition` ( `sampleCompositionId` int(11) unsigned NOT NULL AUTO_INCREMENT, `componentId` int(11) unsigned NOT NULL, @@ -3065,7 +3066,7 @@ CREATE TABLE `SampleComposition` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScanParametersModel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScanParametersModel` ( `scanParametersModelId` int(11) unsigned NOT NULL AUTO_INCREMENT, `scanParametersServiceId` int(10) unsigned DEFAULT NULL, @@ -3085,7 +3086,7 @@ CREATE TABLE `ScanParametersModel` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScanParametersService`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScanParametersService` ( `scanParametersServiceId` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, @@ -3095,7 +3096,7 @@ CREATE TABLE `ScanParametersService` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Schedule`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Schedule` ( `scheduleId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, @@ -3104,7 +3105,7 @@ CREATE TABLE `Schedule` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScheduleComponent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScheduleComponent` ( `scheduleComponentId` int(11) unsigned NOT NULL AUTO_INCREMENT, `scheduleId` int(11) unsigned NOT NULL, @@ -3119,7 +3120,7 @@ CREATE TABLE `ScheduleComponent` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `SchemaStatus`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `SchemaStatus` ( `schemaStatusId` int(11) NOT NULL AUTO_INCREMENT, `scriptName` varchar(100) NOT NULL, @@ -3131,7 +3132,7 @@ CREATE TABLE `SchemaStatus` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Screen`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Screen` ( `screenId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, @@ -3147,7 +3148,7 @@ CREATE TABLE `Screen` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreenComponent`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreenComponent` ( `screenComponentId` int(11) unsigned NOT NULL AUTO_INCREMENT, `screenComponentGroupId` int(11) unsigned NOT NULL, @@ -3163,7 +3164,7 @@ CREATE TABLE `ScreenComponent` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreenComponentGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreenComponentGroup` ( `screenComponentGroupId` int(11) unsigned NOT NULL AUTO_INCREMENT, `screenId` int(11) unsigned NOT NULL, @@ -3175,7 +3176,7 @@ CREATE TABLE `ScreenComponentGroup` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Screening`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Screening` ( `screeningId` int(10) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned DEFAULT NULL, @@ -3199,7 +3200,7 @@ CREATE TABLE `Screening` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreeningInput`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreeningInput` ( `screeningInputId` int(10) unsigned NOT NULL AUTO_INCREMENT, `screeningId` int(10) unsigned NOT NULL DEFAULT 0, @@ -3218,7 +3219,7 @@ CREATE TABLE `ScreeningInput` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreeningOutput`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreeningOutput` ( `screeningOutputId` int(10) unsigned NOT NULL AUTO_INCREMENT, `screeningId` int(10) unsigned NOT NULL DEFAULT 0, @@ -3254,7 +3255,7 @@ CREATE TABLE `ScreeningOutput` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreeningOutputLattice`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreeningOutputLattice` ( `screeningOutputLatticeId` int(10) unsigned NOT NULL AUTO_INCREMENT, `screeningOutputId` int(10) unsigned NOT NULL DEFAULT 0, @@ -3285,7 +3286,7 @@ CREATE TABLE `ScreeningOutputLattice` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreeningRank`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreeningRank` ( `screeningRankId` int(10) unsigned NOT NULL AUTO_INCREMENT, `screeningRankSetId` int(10) unsigned NOT NULL DEFAULT 0, @@ -3301,7 +3302,7 @@ CREATE TABLE `ScreeningRank` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreeningRankSet`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreeningRankSet` ( `screeningRankSetId` int(10) unsigned NOT NULL AUTO_INCREMENT, `rankEngine` varchar(255) DEFAULT NULL, @@ -3312,7 +3313,7 @@ CREATE TABLE `ScreeningRankSet` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreeningStrategy`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreeningStrategy` ( `screeningStrategyId` int(10) unsigned NOT NULL AUTO_INCREMENT, `screeningOutputId` int(10) unsigned NOT NULL DEFAULT 0, @@ -3334,7 +3335,7 @@ CREATE TABLE `ScreeningStrategy` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreeningStrategySubWedge`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreeningStrategySubWedge` ( `screeningStrategySubWedgeId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key', `screeningStrategyWedgeId` int(10) unsigned DEFAULT NULL COMMENT 'Foreign key to parent table', @@ -3358,7 +3359,7 @@ CREATE TABLE `ScreeningStrategySubWedge` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ScreeningStrategyWedge`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ScreeningStrategyWedge` ( `screeningStrategyWedgeId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key', `screeningStrategyId` int(10) unsigned DEFAULT NULL COMMENT 'Foreign key to parent table', @@ -3380,7 +3381,7 @@ CREATE TABLE `ScreeningStrategyWedge` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `SessionType`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `SessionType` ( `sessionTypeId` int(10) unsigned NOT NULL AUTO_INCREMENT, `sessionId` int(10) unsigned NOT NULL, @@ -3392,7 +3393,7 @@ CREATE TABLE `SessionType` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Session_has_Person`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Session_has_Person` ( `sessionId` int(10) unsigned NOT NULL DEFAULT 0, `personId` int(10) unsigned NOT NULL DEFAULT 0, @@ -3406,7 +3407,7 @@ CREATE TABLE `Session_has_Person` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Shipping`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Shipping` ( `shippingId` int(10) unsigned NOT NULL AUTO_INCREMENT, `proposalId` int(10) unsigned NOT NULL DEFAULT 0, @@ -3459,7 +3460,7 @@ CREATE TABLE `Shipping` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `ShippingHasSession`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `ShippingHasSession` ( `shippingId` int(10) unsigned NOT NULL, `sessionId` int(10) unsigned NOT NULL, @@ -3471,7 +3472,7 @@ CREATE TABLE `ShippingHasSession` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Sleeve`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Sleeve` ( `sleeveId` tinyint(3) unsigned NOT NULL COMMENT 'The unique sleeve id 1...255 which also identifies its home location in the freezer', `location` tinyint(3) unsigned DEFAULT NULL COMMENT 'NULL == freezer, 1...255 for local storage locations', @@ -3482,7 +3483,7 @@ CREATE TABLE `Sleeve` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `SpaceGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `SpaceGroup` ( `spaceGroupId` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key', `spaceGroupNumber` int(10) unsigned DEFAULT NULL COMMENT 'ccp4 number pr IUCR', @@ -3501,7 +3502,7 @@ CREATE TABLE `SpaceGroup` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `SubstructureDetermination`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `SubstructureDetermination` ( `substructureDeterminationId` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary key (auto-incremented)', `phasingAnalysisId` int(11) unsigned NOT NULL COMMENT 'Related phasing analysis item', @@ -3522,7 +3523,7 @@ CREATE TABLE `SubstructureDetermination` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `TiltImageAlignment`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `TiltImageAlignment` ( `movieId` int(11) unsigned NOT NULL COMMENT 'FK to Movie table', `tomogramId` int(11) unsigned NOT NULL COMMENT 'FK to Tomogram table; tuple (movieID, tomogramID) is unique', @@ -3543,7 +3544,7 @@ CREATE TABLE `TiltImageAlignment` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `Tomogram`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `Tomogram` ( `tomogramId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionId` int(11) unsigned DEFAULT NULL COMMENT 'FK to DataCollection table', @@ -3579,7 +3580,7 @@ CREATE TABLE `Tomogram` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `UserGroup`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `UserGroup` ( `userGroupId` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(31) NOT NULL, @@ -3589,7 +3590,7 @@ CREATE TABLE `UserGroup` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `UserGroup_has_LDAPSearchParameters`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `UserGroup_has_LDAPSearchParameters` ( `userGroupId` int(11) unsigned NOT NULL, `ldapSearchParametersId` int(11) unsigned NOT NULL, @@ -3602,7 +3603,7 @@ CREATE TABLE `UserGroup_has_LDAPSearchParameters` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `UserGroup_has_Permission`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `UserGroup_has_Permission` ( `userGroupId` int(11) unsigned NOT NULL, `permissionId` int(11) unsigned NOT NULL, @@ -3614,7 +3615,7 @@ CREATE TABLE `UserGroup_has_Permission` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `UserGroup_has_Person`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `UserGroup_has_Person` ( `userGroupId` int(11) unsigned NOT NULL, `personId` int(10) unsigned NOT NULL, @@ -3626,7 +3627,7 @@ CREATE TABLE `UserGroup_has_Person` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `XFEFluorescenceComposite`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `XFEFluorescenceComposite` ( `xfeFluorescenceCompositeId` int(10) unsigned NOT NULL AUTO_INCREMENT, `r` int(10) unsigned NOT NULL COMMENT 'Red layer', @@ -3647,7 +3648,7 @@ CREATE TABLE `XFEFluorescenceComposite` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `XFEFluorescenceSpectrum`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `XFEFluorescenceSpectrum` ( `xfeFluorescenceSpectrumId` int(10) unsigned NOT NULL AUTO_INCREMENT, `sessionId` int(10) unsigned NOT NULL, @@ -3682,7 +3683,7 @@ CREATE TABLE `XFEFluorescenceSpectrum` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `XRFFluorescenceMapping`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `XRFFluorescenceMapping` ( `xrfFluorescenceMappingId` int(11) unsigned NOT NULL AUTO_INCREMENT, `xrfFluorescenceMappingROIId` int(11) unsigned NOT NULL, @@ -3706,7 +3707,7 @@ CREATE TABLE `XRFFluorescenceMapping` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `XRFFluorescenceMappingROI`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `XRFFluorescenceMappingROI` ( `xrfFluorescenceMappingROIId` int(11) unsigned NOT NULL AUTO_INCREMENT, `startEnergy` float NOT NULL, @@ -3725,7 +3726,7 @@ CREATE TABLE `XRFFluorescenceMappingROI` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `XrayCentring`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `XrayCentring` ( `xrayCentringId` int(11) unsigned NOT NULL AUTO_INCREMENT, `dataCollectionGroupId` int(11) NOT NULL COMMENT 'references DataCollectionGroup table', @@ -3738,7 +3739,7 @@ CREATE TABLE `XrayCentring` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `XrayCentringResult`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `XrayCentringResult` ( `xrayCentringResultId` int(11) unsigned NOT NULL AUTO_INCREMENT, `xrayCentringId` int(11) unsigned NOT NULL COMMENT 'references XrayCentring table', @@ -3765,7 +3766,7 @@ CREATE TABLE `XrayCentringResult` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `v_run`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `v_run` ( `runId` int(11) unsigned NOT NULL AUTO_INCREMENT, `run` varchar(7) NOT NULL DEFAULT '', @@ -3777,7 +3778,7 @@ CREATE TABLE `v_run` ( /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `zc_ZocaloBuffer`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `zc_ZocaloBuffer` ( `AutoProcProgramID` int(10) unsigned NOT NULL COMMENT 'Reference to an existing AutoProcProgram', `UUID` int(10) unsigned NOT NULL COMMENT 'AutoProcProgram-specific unique identifier', diff --git a/schemas/ispyb/updates/2025_02_25_AdminVar_bump_version.sql b/schemas/ispyb/updates/2025_02_25_AdminVar_bump_version.sql new file mode 100644 index 0000000..9c692d3 --- /dev/null +++ b/schemas/ispyb/updates/2025_02_25_AdminVar_bump_version.sql @@ -0,0 +1,5 @@ +INSERT IGNORE INTO SchemaStatus (scriptName, schemaStatus) VALUES ('2025_02_25_AdminVar_bump_version.sql', 'ONGOING'); + +UPDATE AdminVar SET `value` = '4.5.0' WHERE `name` = 'schemaVersion'; + +UPDATE SchemaStatus SET schemaStatus = 'DONE' WHERE scriptName = '2025_02_25_AdminVar_bump_version.sql';