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
7b05e45f
Commit
7b05e45f
authored
13 years ago
by
Dan Staines
Browse files
Options
Downloads
Patches
Plain Diff
patch to bring in operon model tables
parent
98a44bc7
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
sql/patch_63_64_b.sql
+79
-0
79 additions, 0 deletions
sql/patch_63_64_b.sql
with
79 additions
and
0 deletions
sql/patch_63_64_b.sql
0 → 100644
+
79
−
0
View file @
7b05e45f
#
patch_63_64_b
.
sql
#
#
Title
:
Add
tables
for
supporting
operons
#
#
Description
:
#
Create
operon
,
operon_transcript
,
operon_transcript_gene
,
operon_stable_id
,
operon_transcript_stable_id
tables
to
represent
Operon
and
OperonTranscript
and
to
associated
them
with
genes
.
Modify
object_xref
to
allow
xrefs
to
be
attached
to
operon
and
operon_transcript
CREATE
TABLE
operon
(
operon_id
INT
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
seq_region_id
INT
(
10
)
UNSIGNED
NOT
NULL
,
seq_region_start
INT
(
10
)
UNSIGNED
NOT
NULL
,
seq_region_end
INT
(
10
)
UNSIGNED
NOT
NULL
,
seq_region_strand
TINYINT
(
2
)
NOT
NULL
,
display_label
VARCHAR
(
255
)
DEFAULT
NULL
,
analysis_id
SMALLINT
UNSIGNED
NOT
NULL
,
PRIMARY
KEY
(
operon_id
),
KEY
seq_region_idx
(
seq_region_id
,
seq_region_start
),
KEY
name_idx
(
display_label
)
)
COLLATE
=
latin1_swedish_ci
ENGINE
=
MyISAM
;
CREATE
TABLE
operon_transcript
(
operon_transcript_id
INT
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
seq_region_id
INT
(
10
)
UNSIGNED
NOT
NULL
,
seq_region_start
INT
(
10
)
UNSIGNED
NOT
NULL
,
seq_region_end
INT
(
10
)
UNSIGNED
NOT
NULL
,
seq_region_strand
TINYINT
(
2
)
NOT
NULL
,
operon_id
INT
(
10
)
UNSIGNED
NOT
NULL
,
display_label
VARCHAR
(
255
)
DEFAULT
NULL
,
analysis_id
SMALLINT
UNSIGNED
NOT
NULL
,
PRIMARY
KEY
(
operon_transcript_id
),
KEY
operon_idx
(
operon_id
),
KEY
seq_region_idx
(
seq_region_id
,
seq_region_start
)
)
COLLATE
=
latin1_swedish_ci
ENGINE
=
MyISAM
;
CREATE
TABLE
operon_transcript_gene
(
operon_transcript_id
INT
(
10
)
UNSIGNED
,
gene_id
INT
(
10
)
UNSIGNED
,
KEY
operon_transcript_gene_idx
(
operon_transcript_id
,
gene_id
)
)
COLLATE
=
latin1_swedish_ci
ENGINE
=
MyISAM
;
CREATE
TABLE
operon_stable_id
(
operon_id
INT
UNSIGNED
NOT
NULL
,
stable_id
VARCHAR
(
128
)
NOT
NULL
,
version
INT
(
10
),
created_date
DATETIME
NOT
NULL
,
modified_date
DATETIME
NOT
NULL
,
PRIMARY
KEY
(
operon_id
),
KEY
stable_id_idx
(
stable_id
,
version
)
)
COLLATE
=
latin1_swedish_ci
ENGINE
=
MyISAM
;
CREATE
TABLE
operon_transcript_stable_id
(
operon_transcript_id
INT
UNSIGNED
NOT
NULL
,
stable_id
VARCHAR
(
128
)
NOT
NULL
,
version
INT
(
10
),
created_date
DATETIME
NOT
NULL
,
modified_date
DATETIME
NOT
NULL
,
PRIMARY
KEY
(
operon_transcript_id
),
KEY
stable_id_idx
(
stable_id
,
version
)
)
COLLATE
=
latin1_swedish_ci
ENGINE
=
MyISAM
;
alter
table
object_xref
modify
column
ensembl_object_type
ENUM
(
'RawContig'
,
'Transcript'
,
'Gene'
,
'Translation'
,
'Operon'
,
'OperonTranscript'
);
#
Patch
identifier
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_63_64_b.sql|add_operons'
);
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