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
012e65ed
Commit
012e65ed
authored
6 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
ENSCORESW-2758
: default align type is NULL
parent
e59c9d4d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!273
Master
,
!256
ENSCORESW-2758: default align type is NULL
,
!273
Master
,
!256
ENSCORESW-2758: default align type is NULL
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/Bio/EnsEMBL/ProteinFeature.pm
+1
-1
1 addition, 1 deletion
modules/Bio/EnsEMBL/ProteinFeature.pm
sql/patch_93_94_c.sql
+28
-0
28 additions, 0 deletions
sql/patch_93_94_c.sql
sql/table.sql
+3
-1
3 additions, 1 deletion
sql/table.sql
with
32 additions
and
2 deletions
modules/Bio/EnsEMBL/ProteinFeature.pm
+
1
−
1
View file @
012e65ed
...
...
@@ -108,7 +108,7 @@ sub new {
$self
->
{'
external_data
'}
=
$external_data
||
'';
$self
->
{'
hit_description
'}
=
$hit_description
||
'';
$self
->
{'
cigar_string
'}
=
$cigar_string
||
'';
$self
->
{'
align_type
'}
=
$align_type
||
''
;
$self
->
{'
align_type
'}
=
$align_type
;
return
$self
;
}
...
...
This diff is collapsed.
Click to expand it.
sql/patch_93_94_c.sql
0 → 100644
+
28
−
0
View file @
012e65ed
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
-- Copyright [2016-2018] EMBL-European Bioinformatics Institute
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
#
patch_93_94_c
.
sql
#
#
Title
:
Default
align_type
is
'ensembl'
#
#
Description
:
#
Ensure
default
align_type
in
align_feature
tables
is
'ensembl'
ALTER
TABLE
protein_feature
MODIFY
COLUMN
align_type
ENUM
(
'ensembl'
,
'cigar'
,
'cigarplus'
,
'vulgar'
,
'mdtag'
)
DEFAULT
NULL
;
UPDATE
protein_feature
SET
align_type
=
NULL
WHERE
align_type
=
''
;
#
patch
identifier
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_93_94_c.sql|default_aln_type'
);
This diff is collapsed.
Click to expand it.
sql/table.sql
+
3
−
1
View file @
012e65ed
...
...
@@ -317,6 +317,8 @@ INSERT INTO meta (species_id, meta_key, meta_value)
VALUES
(
NULL
,
'patch'
,
'patch_93_94_a.sql|schema_version'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_93_94_b.sql|nullable_ox_analysis'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_93_94_c.sql|default_aln_type'
);
/**
...
...
@@ -962,7 +964,7 @@ CREATE TABLE protein_feature (
external_data
TEXT
,
hit_description
TEXT
,
cigar_line
TEXT
,
align_type
ENUM
(
'ensembl'
,
'cigar'
,
'cigarplus'
,
'vulgar'
,
'mdtag'
),
align_type
ENUM
(
'ensembl'
,
'cigar'
,
'cigarplus'
,
'vulgar'
,
'mdtag'
)
DEFAULT
NULL
,
UNIQUE
KEY
aln_idx
(
translation_id
,
hit_name
,
seq_start
,
seq_end
,
hit_start
,
hit_end
,
analysis_id
),
PRIMARY
KEY
(
protein_feature_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