Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
c0737dad
Commit
c0737dad
authored
14 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
Remove all "DROP TABLE IF EXISTS" statements.
parent
39a5b406
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/ontology/sql/table.sql
+0
-7
0 additions, 7 deletions
misc-scripts/ontology/sql/table.sql
with
0 additions
and
7 deletions
misc-scripts/ontology/sql/table.sql
+
0
−
7
View file @
c0737dad
...
...
@@ -2,7 +2,6 @@
-- The schema for the ensembl_ontology_NN database.
-- ---------------------------------------------------------------------
DROP
TABLE
IF
EXISTS
meta
;
CREATE
TABLE
meta
(
meta_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
meta_key
VARCHAR
(
64
)
NOT
NULL
,
...
...
@@ -15,7 +14,6 @@ CREATE TABLE meta (
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'schema_type'
,
'ontology'
);
DROP
TABLE
IF
EXISTS
ontology
;
CREATE
TABLE
ontology
(
ontology_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
name
VARCHAR
(
64
)
NOT
NULL
,
...
...
@@ -25,7 +23,6 @@ CREATE TABLE ontology (
UNIQUE
INDEX
name_namespace_idx
(
name
,
namespace
)
);
DROP
TABLE
IF
EXISTS
subset
;
CREATE
TABLE
subset
(
subset_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
name
VARCHAR
(
64
)
NOT
NULL
,
...
...
@@ -35,7 +32,6 @@ CREATE TABLE subset (
UNIQUE
INDEX
name_idx
(
name
)
);
DROP
TABLE
IF
EXISTS
term
;
CREATE
TABLE
term
(
term_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
ontology_id
INT
UNSIGNED
NOT
NULL
,
...
...
@@ -49,7 +45,6 @@ CREATE TABLE term (
UNIQUE
INDEX
acc_ontology_idx
(
accession
,
ontology_id
)
);
DROP
TABLE
IF
EXISTS
relation_type
;
CREATE
TABLE
relation_type
(
relation_type_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
name
VARCHAR
(
64
)
NOT
NULL
,
...
...
@@ -58,7 +53,6 @@ CREATE TABLE relation_type (
UNIQUE
INDEX
name_idx
(
name
)
);
DROP
TABLE
IF
EXISTS
relation
;
CREATE
TABLE
relation
(
relation_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
child_term_id
INT
UNSIGNED
NOT
NULL
,
...
...
@@ -71,7 +65,6 @@ CREATE TABLE relation (
INDEX
parent_idx
(
parent_term_id
)
);
DROP
TABLE
IF
EXISTS
closure
;
CREATE
TABLE
closure
(
closure_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
child_term_id
INT
UNSIGNED
NOT
NULL
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment