From fddbbc1b12c9c3a4011cd8f7c313c1de96ba8859 Mon Sep 17 00:00:00 2001 From: MarvinDo Date: Wed, 21 Feb 2024 14:24:17 +0100 Subject: [PATCH] update update database --- .../database_dumper/update_database_5.sql | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/resources/backups/database_dumper/update_database_5.sql b/resources/backups/database_dumper/update_database_5.sql index 8ebaf233..fdce12ab 100644 --- a/resources/backups/database_dumper/update_database_5.sql +++ b/resources/backups/database_dumper/update_database_5.sql @@ -136,16 +136,14 @@ -- ALTER TABLE `HerediVar`.`assay` -- DROP COLUMN `assay_type`; -INSERT INTO `HerediVar`.`assay_metadata` (assay_id, metadata_type_id, value) SELECT id, (SELECT id FROM `HerediVar`.`assay_metadata_type` WHERE assay_metadata_type.title = 'score' AND assay_metadata_type.assay_type_id = assay.assay_type_id), score FROM `HerediVar`.`assay`; - -ALTER TABLE `HerediVar`.`assay` -DROP COLUMN `score`; - -ALTER TABLE `HerediVar`.`assay` -CHANGE COLUMN `paper` `link` TEXT NULL DEFAULT NULL ; +-- INSERT INTO `HerediVar`.`assay_metadata` (assay_id, metadata_type_id, value) SELECT id, (SELECT id FROM `HerediVar`.`assay_metadata_type` WHERE assay_metadata_type.title = 'score' AND assay_metadata_type.assay_type_id = assay.assay_type_id), score FROM `HerediVar`.`assay`; +-- +-- ALTER TABLE `HerediVar`.`assay` +-- DROP COLUMN `score`; +-- +-- ALTER TABLE `HerediVar`.`assay` +-- CHANGE COLUMN `paper` `link` TEXT NULL DEFAULT NULL ; -ALTER TABLE `HerediVar`.`assay_metadata_type` -ADD COLUMN `is_required` TINYINT(1) NOT NULL DEFAULT 1 AFTER `is_deleted`; ALTER TABLE `HerediVar`.`assay_metadata` CHANGE COLUMN `metadata_type_id` `assay_metadata_type_id` INT(11) NOT NULL ;