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
de8e5bd4
Commit
de8e5bd4
authored
7 years ago
by
Tiago Grego
Browse files
Options
Downloads
Patches
Plain Diff
updated patch_92_93_b.sql and added changes to tables.sql
parent
61ee97a0
No related branches found
No related tags found
2 merge requests
!228
Biotype in Core schema
,
!228
Biotype in Core schema
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sql/patch_92_93_b.sql
+2
-3
2 additions, 3 deletions
sql/patch_92_93_b.sql
sql/table.sql
+36
-0
36 additions, 0 deletions
sql/table.sql
with
38 additions
and
3 deletions
sql/patch_92_93_b.sql
+
2
−
3
View file @
de8e5bd4
...
...
@@ -34,6 +34,5 @@ CREATE TABLE biotype (
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
#
patch
identifier
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_92_93_b.sql|biotype_table'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_92_93_b.sql|biotype_table'
);
This diff is collapsed.
Click to expand it.
sql/table.sql
+
36
−
0
View file @
de8e5bd4
...
...
@@ -310,6 +310,9 @@ INSERT INTO meta (species_id, meta_key, meta_value) VALUES
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_92_93_a.sql|schema_version'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_92_93_b.sql|biotype_table'
);
/**
@table meta_coord
@desc Describes which co-ordinate systems the different feature tables use.
...
...
@@ -2110,6 +2113,39 @@ CREATE TABLE external_db (
)
COLLATE
=
latin1_swedish_ci
ENGINE
=
MyISAM
;
/**
@table biotype
@desc Stores data about the biotypes and mappings to Sequence Ontology.
@column biotype_id Primary key, internal identifier.
@column name Ensembl biotype name.
@column object_type Ensembl object type: 'gene' or 'transcript'.
@column db_type Type, e.g. 'cdna', 'core', 'coreexpressionatlas', 'coreexpressionest', 'coreexpressiongnf', 'funcgen', 'otherfeatures', 'rnaseq', 'variation', 'vega', 'presite', 'sangervega'
@column attrib_type_id Foreign key references to the @link attrib_type table.
@column description Description.
@column biotype_group Group, e.g. 'coding', 'pseudogene', 'snoncoding', 'lnoncoding', 'mnoncoding', 'LRG', 'undefined', 'no_group'
@column so_acc Sequence Ontology accession of the biotype.
@see attrib_type
*/
CREATE
TABLE
biotype
(
biotype_id
INTEGER
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
name
VARCHAR
(
64
)
NOT
NULL
,
object_type
ENUM
(
'gene'
,
'transcript'
)
NOT
NULL
DEFAULT
'gene'
,
db_type
set
(
'cdna'
,
'core'
,
'coreexpressionatlas'
,
'coreexpressionest'
,
'coreexpressiongnf'
,
'funcgen'
,
'otherfeatures'
,
'rnaseq'
,
'variation'
,
'vega'
,
'presite'
,
'sangervega'
)
NOT
NULL
DEFAULT
'core'
,
attrib_type_id
INTEGER
DEFAULT
NULL
,
description
TEXT
,
biotype_group
ENUM
(
'coding'
,
'pseudogene'
,
'snoncoding'
,
'lnoncoding'
,
'mnoncoding'
,
'LRG'
,
'undefined'
,
'no_group'
)
DEFAULT
NULL
,
so_acc
VARCHAR
(
64
),
PRIMARY
KEY
(
biotype_id
),
UNIQUE
KEY
name_type_idx
(
name
,
object_type
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
/**
@table external_synonym
@desc Some xref objects can be referred to by more than one name. This table relates names to xref IDs.
...
...
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