Skip to content

Commit

Permalink
update database update
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinDo committed Oct 27, 2023
1 parent 39bbcd4 commit 0bfba89
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions resources/backups/database_dumper/update_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@



DROP TABLE IF EXISTS `HerediVar`.`import_variant_queue`;
CREATE TABLE `HerediVar`.`import_variant_queue` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`import_queue_id` int(10) unsigned DEFAULT NULL,
`status` enum('pending','success','error','progress','deleted','update','retry') NOT NULL DEFAULT 'pending',
`requested_at` datetime NOT NULL DEFAULT current_timestamp(),
`finished_at` datetime DEFAULT NULL,
`message` text DEFAULT '',
`celery_task_id` varchar(45) DEFAULT NULL,
`vid` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
KEY `fk_import_variant_queue_import_queue_idx` (`import_queue_id`),
CONSTRAINT `fk_import_variant_queue_import_queue` FOREIGN KEY (`import_queue_id`) REFERENCES `import_queue` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=42036 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
-- DROP TABLE IF EXISTS `HerediVar`.`import_variant_queue`;
-- CREATE TABLE `HerediVar`.`import_variant_queue` (
-- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
-- `import_queue_id` int(10) unsigned DEFAULT NULL,
-- `status` enum('pending','success','error','progress','deleted','update','retry') NOT NULL DEFAULT 'pending',
-- `requested_at` datetime NOT NULL DEFAULT current_timestamp(),
-- `finished_at` datetime DEFAULT NULL,
-- `message` text DEFAULT '',
-- `celery_task_id` varchar(45) DEFAULT NULL,
-- `vid` text NOT NULL,
-- PRIMARY KEY (`id`),
-- UNIQUE KEY `id_UNIQUE` (`id`),
-- KEY `fk_import_variant_queue_import_queue_idx` (`import_queue_id`),
-- CONSTRAINT `fk_import_variant_queue_import_queue` FOREIGN KEY (`import_queue_id`) REFERENCES `import_queue` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
-- ) ENGINE=InnoDB AUTO_INCREMENT=42036 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;




ALTER TABLE `HerediVar`.`variant`
ADD COLUMN `is_hidden` TINYINT(1) NOT NULL DEFAULT 0 AFTER `is_hidden`;
ADD COLUMN `is_hidden` TINYINT(1) NOT NULL DEFAULT 0 AFTER `orig_alt`;



Expand Down

0 comments on commit 0bfba89

Please sign in to comment.