From d3ed644741daf550b6a62054a8fd9a1a073a84a4 Mon Sep 17 00:00:00 2001 From: MarvinDo Date: Fri, 3 Nov 2023 12:52:59 +0100 Subject: [PATCH] update database update --- .../database_dumper/update_database_2.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/resources/backups/database_dumper/update_database_2.sql b/resources/backups/database_dumper/update_database_2.sql index 6a262d13..7be0e24e 100644 --- a/resources/backups/database_dumper/update_database_2.sql +++ b/resources/backups/database_dumper/update_database_2.sql @@ -49,3 +49,20 @@ UPDATE `HerediVar_ahdoebm1`.`annotation_type` SET `group_name` = 'Protein Domain UPDATE `HerediVar_ahdoebm1`.`annotation_type` SET `group_name` = 'Protein Domain' WHERE (`id` = '37'); UPDATE `HerediVar_ahdoebm1`.`annotation_type` SET `group_name` = 'None' WHERE (`id` = '9'); UPDATE `HerediVar_ahdoebm1`.`annotation_type` SET `group_name` = 'None' WHERE (`id` = '10'); + + + + +ALTER TABLE `HerediVar_ahdoebm1`.`variant_heredicare_annotation` +ADD INDEX `FK_variant_heredicare_annotation_variant_idx` (`variant_id` ASC); +; +ALTER TABLE `HerediVar_ahdoebm1`.`variant_heredicare_annotation` +ADD CONSTRAINT `FK_variant_heredicare_annotation_variant` + FOREIGN KEY (`variant_id`) + REFERENCES `HerediVar_ahdoebm1`.`variant` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION; + + +ALTER TABLE `HerediVar_ahdoebm1`.`annotation_queue` +CHANGE COLUMN `error_message` `error_message` TEXT NULL DEFAULT '' ;