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
8b713994
Commit
8b713994
authored
13 years ago
by
Thibaut Hourlier
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug with MODIFY and anal_idx
parent
cfb85580
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_62_63_b.sql
+6
-6
6 additions, 6 deletions
sql/patch_62_63_b.sql
with
6 additions
and
6 deletions
sql/patch_62_63_b.sql
+
6
−
6
View file @
8b713994
...
...
@@ -6,31 +6,31 @@
#
change
stable
Id
version
to
not
null
,
default
1
ALTER
TABLE
exon_stable_id
MODIFY
version
NOT
NULL
DEFAULT
1
;
ALTER
TABLE
exon_stable_id
MODIFY
version
INT
(
10
)
NOT
NULL
DEFAULT
1
;
DROP
INDEX
stable_id_idx
ON
exon_stable_id
;
CREATE
UNIQUE
INDEX
stable_id_idx
ON
exon_stable_id
(
stable_id
,
version
);
ALTER
TABLE
gene_stable_id
MODIFY
version
NOT
NULL
DEFAULT
1
;
ALTER
TABLE
gene_stable_id
MODIFY
version
INT
(
10
)
NOT
NULL
DEFAULT
1
;
DROP
INDEX
stable_id_idx
ON
gene_stable_id
;
CREATE
UNIQUE
INDEX
stable_id_idx
ON
gene_stable_id
(
stable_id
,
version
);
ALTER
TABLE
transcript_stable_id
MODIFY
version
NOT
NULL
DEFAULT
1
;
ALTER
TABLE
transcript_stable_id
MODIFY
version
INT
(
10
)
NOT
NULL
DEFAULT
1
;
DROP
INDEX
stable_id_idx
ON
transcript_stable_id
;
CREATE
UNIQUE
INDEX
stable_id_idx
ON
transcript_stable_id
(
stable_id
,
version
);
ALTER
TABLE
translation_stable_id
MODIFY
version
NOT
NULL
DEFAULT
1
;
ALTER
TABLE
translation_stable_id
MODIFY
version
INT
(
10
)
NOT
NULL
DEFAULT
1
;
DROP
INDEX
stable_id_idx
ON
translation_stable_id
;
CREATE
UNIQUE
INDEX
stable_id_idx
ON
translation_stable_id
(
stable_id
,
version
);
ALTER
TABLE
gene_archive
MODIFY
gene_version
DEFAULT
1
,
MODIFY
transcript_version
DEFAULT
1
,
MODIFY
translation_version
NOT
NULL
DEFAULT
1
;
ALTER
TABLE
gene_archive
MODIFY
gene_version
SMALLINT
(
6
)
DEFAULT
1
,
MODIFY
transcript_version
SMALLINT
(
6
)
DEFAULT
1
,
MODIFY
translation_version
SMALLINT
(
6
)
NOT
NULL
DEFAULT
1
;
DROP
INDEX
gene_idx
ON
gene_archive
;
...
...
@@ -47,7 +47,7 @@ CREATE INDEX translation_idx ON gene_archive(translation_stable_id, translation
#
umapped_object
new
unique
index
DROP
INDEX
anal_idx
ON
unmapped_object
(
analysis_id
)
;
DROP
INDEX
anal_idx
ON
unmapped_object
;
CREATE
UNIQUE
INDEX
unique_unmapped_obj_idx
ON
unmapped_object
(
identifier
,
ensembl_id
,
parent
,
unmapped_reason_id
,
ensembl_object_type
,
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