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
d331748c
Commit
d331748c
authored
17 years ago
by
Will Spooner
Browse files
Options
Downloads
Patches
Plain Diff
Added a source_external_db_id field to go_xref table
parent
e703a9c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sql/foreign_keys.sql
+2
-0
2 additions, 0 deletions
sql/foreign_keys.sql
sql/patch_44_45_d.sql
+15
-0
15 additions, 0 deletions
sql/patch_44_45_d.sql
sql/table.sql
+2
-0
2 additions, 0 deletions
sql/table.sql
with
19 additions
and
0 deletions
sql/foreign_keys.sql
+
2
−
0
View file @
d331748c
...
...
@@ -56,6 +56,8 @@ ALTER table gene_stable_id ADD FOREIGN KEY (gene_id) REFERENCES gene(gene_id);
ALTER
table
go_xref
ADD
FOREIGN
KEY
(
object_xref_id
)
REFERENCES
object_xref
(
object_xref_id
);
ALTER
table
go_xref
ADD
FOREIGN
KEY
(
source_external_db_id
)
REFERENCES
external_db
(
external_db_id
);
ALTER
table
identity_xref
ADD
FOREIGN
KEY
(
analysis_id
)
REFERENCES
analysis
(
analysis_id
);
ALTER
table
identity_xref
ADD
FOREIGN
KEY
(
object_xref_id
)
REFERENCES
object_xref
(
object_xref_id
);
...
...
This diff is collapsed.
Click to expand it.
sql/patch_44_45_d.sql
0 → 100644
+
15
−
0
View file @
d331748c
#
patch_44_45_d
.
sql
#
#
title
:
go_xref_source_field
#
#
description
:
#
Add
a
source_external_db_id
field
to
go_xref
table
ALTER
TABLE
`go_xref`
ADD
COLUMN
`source_external_db_id`
int
(
10
)
unsigned
default
NULL
;
ALTER
TABLE
`go_xref`
ADD
KEY
(
source_external_db_id
);
#
patch
identifier
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_44_45_d.sql|go_xref_source_field'
);
This diff is collapsed.
Click to expand it.
sql/table.sql
+
2
−
0
View file @
d331748c
...
...
@@ -729,7 +729,9 @@ CREATE TABLE go_xref (
linkage_type
ENUM
(
'IC'
,
'IDA'
,
'IEA'
,
'IEP'
,
'IGI'
,
'IMP'
,
'IPI'
,
'ISS'
,
'NAS'
,
'ND'
,
'TAS'
,
'NR'
,
'RCA'
)
NOT
NULL
,
source_external_db_id
INT
(
10
)
UNSIGNED
DEFAULT
NULL
,
KEY
(
object_xref_id
),
KEY
(
source_external_db_id
),
UNIQUE
(
object_xref_id
,
linkage_type
)
)
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