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
8253d402
Commit
8253d402
authored
19 years ago
by
Patrick Meidl
Browse files
Options
Downloads
Patches
Plain Diff
added analysis_id to transcript table
parent
5ec9b089
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sql/patch_37_38.sql
+7
-0
7 additions, 0 deletions
sql/patch_37_38.sql
sql/table.sql
+2
-0
2 additions, 0 deletions
sql/table.sql
with
9 additions
and
0 deletions
sql/patch_37_38.sql
+
7
−
0
View file @
8253d402
...
...
@@ -170,3 +170,10 @@ ALTER TABLE density_type CHANGE analysis_id analysis_id INT(10) UNSIGNED NOT NUL
ALTER
TABLE
regulatory_feature
CHANGE
analysis_id
analysis_id
INT
(
10
)
UNSIGNED
NOT
NULL
;
ALTER
TABLE
regulatory_search_region
CHANGE
analysis_id
analysis_id
INT
(
10
)
UNSIGNED
NOT
NULL
;
#
add
column
analysis_id
to
transcript
ALTER
TABLE
transcript
ADD
COLUMN
analysis_id
INT
(
10
)
UNSIGNED
NOT
NULL
AFTER
gene_id
;
ALTER
TABLE
transcript
ADD
INDEX
analysis_idx
(
analysis_id
);
UPDATE
transcript
t
,
gene
g
set
t
.
analysis_id
=
g
.
analysis_id
WHERE
t
.
gene_id
=
g
.
gene_id
;
This diff is collapsed.
Click to expand it.
sql/table.sql
+
2
−
0
View file @
8253d402
...
...
@@ -482,6 +482,7 @@ CREATE TABLE transcript (
transcript_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
gene_id
INT
UNSIGNED
NOT
NULL
,
analysis_id
INT
(
10
)
UNSIGNED
NOT
NULL
,
seq_region_id
INT
(
10
)
UNSIGNED
NOT
NULL
,
seq_region_start
INT
(
10
)
UNSIGNED
NOT
NULL
,
seq_region_end
INT
(
10
)
UNSIGNED
NOT
NULL
,
...
...
@@ -495,6 +496,7 @@ CREATE TABLE transcript (
KEY
seq_region_idx
(
seq_region_id
,
seq_region_start
),
KEY
gene_index
(
gene_id
),
KEY
xref_id_index
(
display_xref_id
)
KEY
analysis_idx
(
analysis_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
...
...
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