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
e6a65b25
Commit
e6a65b25
authored
13 years ago
by
Monika Komorowska
Browse files
Options
Downloads
Patches
Plain Diff
external_db_id definition change
parent
64776949
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/patch_65_66_b.sql
+22
-0
22 additions, 0 deletions
sql/patch_65_66_b.sql
with
22 additions
and
0 deletions
sql/patch_65_66_b.sql
0 → 100644
+
22
−
0
View file @
e6a65b25
#
patch_65_66_b
.
sql
#
#
Title
:
Make
external_db
.
external_db_id
AUTO_INCREMENT
and
INTEGER
UNSIGNED
.
#
#
Description
:
#
We
're using too high values in external_db.external_db_id for the
# current SMALLINT, and with the web interface we'
re
using
internally
#
to
add
new
entries
,
we
also
need
this
field
to
be
AUTO_INCREMENT
.
ALTER
TABLE
external_db
MODIFY
external_db_id
INTEGER
UNSIGNED
NOT
NULL
AUTO_INCREMENT
;
#
Also
modify
this
field
in
the
other
tables
that
uses
it
as
a
foreign
key
:
ALTER
TABLE
dna_align_feature
MODIFY
external_db_id
INTEGER
UNSIGNED
;
ALTER
TABLE
protein_align_feature
MODIFY
external_db_id
INTEGER
UNSIGNED
;
ALTER
TABLE
seq_region_synonym
MODIFY
external_db_id
INTEGER
UNSIGNED
;
ALTER
TABLE
unmapped_object
MODIFY
external_db_id
INTEGER
UNSIGNED
;
ALTER
TABLE
xref
MODIFY
external_db_id
INTEGER
UNSIGNED
;
#
Patch
identifier
:
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_65_66_b.sql|fix_external_db_id'
);
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