Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Unfinished attempt to make this file palatable to the transform_sql.p…

…l script

in biosql-schema, in order to obtain a Pg-compatible version. Frustrating.

svn path=/bioperl-db/trunk/; revision=427
  • Loading branch information...
commit f743d63713d9073f7073121573fcfe9ec14bcc30 1 parent 5e878ee
Hilmar Lapp hlapp authored

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. +7 7 sql/markerdb-mysql.sql
14 sql/markerdb-mysql.sql
@@ -30,7 +30,7 @@ CREATE TABLE species (
30 30 CREATE TABLE strain_to_map_study (
31 31 strain_id integer(11) not null,
32 32 map_study_id integer(11) not null,
33   - UNIQUE KEY i_strain_map (strain_id,map_study_id)
  33 + UNIQUE (strain_id,map_study_id)
34 34 );
35 35
36 36 CREATE TABLE map (
@@ -38,7 +38,7 @@ CREATE TABLE map (
38 38 map_study_id integer(11) not null,
39 39 map_name varchar(32) not null,
40 40 linkage_group varchar(32), -- ???? or chromosome?
41   - UNIQUE KEY i_name (map_study_id,map_name)
  41 + UNIQUE (map_study_id,map_name)
42 42 );
43 43
44 44 -- This is essential the locus table, in which markers are assigned to maps
@@ -117,7 +117,7 @@ create table marker_alias (
117 117 marker_id integer(11) not null,
118 118 alias varchar(64) not null,
119 119 evidence_id integer(11) not null,
120   - UNIQUE KEY i_marker_alias (marker_id,alias)
  120 + UNIQUE (marker_id,alias)
121 121 );
122 122
123 123 CREATE TABLE enzyme (
@@ -134,7 +134,7 @@ CREATE TABLE next_number (
134 134 CREATE TABLE marker_to_marker_group (
135 135 marker_group_id integer(11) not null,
136 136 marker_id integer(11) not null,
137   - UNIQUE KEY i_marker_group (marker_group_id,marker_id)
  137 + UNIQUE (marker_group_id,marker_id)
138 138 );
139 139
140 140 CREATE TABLE marker_group (
@@ -150,8 +150,8 @@ CREATE TABLE marker_polymorphic (
150 150 marker_id integer(11) not null,
151 151 strain1_id integer(11) not null,
152 152 strain2_id integer(11) not null,
153   - is_polymorphic tinyint default 0,
154   - UNIQUE KEY i_marker_strain1_strain2 (marker_id,strain1_id,strain2_id)
  153 + is_polymorphic tinyint,
  154 + UNIQUE (marker_id,strain1_id,strain2_id)
155 155 );
156 156
157 157 -- microsatellites, isozymes and morphological markers have values
@@ -160,7 +160,7 @@ CREATE TABLE microsatellite_allele (
160 160 marker_id integer(11) not null,
161 161 strain_id integer(11) not null,
162 162 allele_length integer(6),
163   - UNIQUE KEY i_marker_strain (marker_id,strain_id)
  163 + UNIQUE (marker_id,strain_id)
164 164 );
165 165 INSERT INTO map (map_id,map_study_id,map_name,linkage_group) values(NULL,1,'marshfield','chr');
166 166 INSERT INTO map_type (map_type,map_units) VALUES ('Genetic','cM');

0 comments on commit f743d63

Please sign in to comment.
Something went wrong with that request. Please try again.