From 542952b6887c9a632af347b50ec33a02f931ce51 Mon Sep 17 00:00:00 2001 From: "Ruben E. Bautista" Date: Thu, 19 Jan 2017 14:34:02 +0000 Subject: [PATCH] Update upgrade-schema-60.x SQL script --- scripts/upgrade_schema/upgrade_schema-60.x | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade_schema/upgrade_schema-60.x b/scripts/upgrade_schema/upgrade_schema-60.x index 814485485..d594287b2 100644 --- a/scripts/upgrade_schema/upgrade_schema-60.x +++ b/scripts/upgrade_schema/upgrade_schema-60.x @@ -2,7 +2,7 @@ -- Table structure for table `rna_seqc` -- -CREATE TABLE IF NOT EXISTS `rna_seqc` ( +CREATE TABLE `rna_seqc` ( `id_rna_seqc` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Auto-generated primary key', `id_seq_composition` bigint(20) unsigned NOT NULL COMMENT 'A foreign key referencing the id_seq_composition column of the seq_composition table', `info` text, @@ -23,9 +23,10 @@ CREATE TABLE IF NOT EXISTS `rna_seqc` ( `end_3_norm` float unsigned DEFAULT NULL, `other_metrics` text, PRIMARY KEY (`id_rna_seqc`), + UNIQUE KEY `rna_seqc_id_compos_unq` (`id_seq_composition`), KEY `rna_seqc_compos` (`id_seq_composition`), CONSTRAINT `rna_seqc_compos` FOREIGN KEY (`id_seq_composition`) REFERENCES `seq_composition` (`id_seq_composition`) ON DELETE NO ACTION ON UPDATE NO ACTION -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- --