Skip to content

Commit

Permalink
update update database
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinDo committed Feb 21, 2024
1 parent 15f37bc commit fddbbc1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions resources/backups/database_dumper/update_database_5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down

0 comments on commit fddbbc1

Please sign in to comment.