Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl
Commits
8113a93d
Commit
8113a93d
authored
Apr 15, 2013
by
Magali Ruffier
Browse files
ENSCORESW-388
: added alt_id table
parent
f105850c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
misc-scripts/ontology/sql/patch_71_72b.sql
misc-scripts/ontology/sql/patch_71_72b.sql
+13
-0
misc-scripts/ontology/sql/tables.sql
misc-scripts/ontology/sql/tables.sql
+10
-0
No files found.
misc-scripts/ontology/sql/patch_71_72b.sql
0 → 100644
View file @
8113a93d
-- Adding alt_id table, contains alternative ids for a given term --
CREATE
TABLE
alt_id
(
alt_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
term_id
INT
UNSIGNED
NOT
NULL
,
accession
VARCHAR
(
64
)
NOT
NULL
,
PRIMARY
KEY
(
alt_id
),
UNIQUE
INDEX
term_alt_idx
(
term_id
,
alt_id
),
INDEX
accession_idx
(
accession
(
50
))
);
misc-scripts/ontology/sql/tables.sql
View file @
8113a93d
...
...
@@ -59,6 +59,16 @@ CREATE TABLE synonym (
INDEX
name_idx
(
name
(
50
))
);
CREATE
TABLE
alt_id
(
alt_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
term_id
INT
UNSIGNED
NOT
NULL
,
accession
VARCHAR
(
64
)
NOT
NULL
,
PRIMARY
KEY
(
alt_id
),
UNIQUE
INDEX
term_alt_idx
(
term_id
,
alt_id
),
INDEX
accession_idx
(
accession
(
50
))
);
CREATE
TABLE
relation_type
(
relation_type_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
name
VARCHAR
(
64
)
NOT
NULL
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment