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
a414592b
Commit
a414592b
authored
8 years ago
by
premanand17
Browse files
Options
Downloads
Patches
Plain Diff
Altered meta table to add NOT NULL constraint to meta_value column
parent
c758d4b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!158
Release 87 patches
,
!158
Release 87 patches
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/table.sql
+4
-8
4 additions, 8 deletions
sql/table.sql
with
4 additions
and
8 deletions
sql/table.sql
+
4
−
8
View file @
a414592b
...
...
@@ -290,7 +290,7 @@ CREATE TABLE IF NOT EXISTS meta (
meta_id
INT
NOT
NULL
AUTO_INCREMENT
,
species_id
INT
UNSIGNED
DEFAULT
1
,
meta_key
VARCHAR
(
40
)
NOT
NULL
,
meta_value
VARCHAR
(
255
),
meta_value
VARCHAR
(
255
)
NOT
NULL
,
PRIMARY
KEY
(
meta_id
),
UNIQUE
KEY
species_key_value_idx
(
species_id
,
meta_key
,
meta_value
),
...
...
@@ -302,20 +302,16 @@ CREATE TABLE IF NOT EXISTS meta (
#
Add
schema
type
and
schema
version
to
the
meta
table
.
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'schema_type'
,
'core'
),
(
NULL
,
'schema_version'
,
'8
6
'
);
(
NULL
,
'schema_version'
,
'8
7
'
);
#
Patches
included
in
this
schema
file
:
#
NOTE
:
At
start
of
release
cycle
,
remove
patch
entries
from
last
release
.
#
NOTE
:
Avoid
line
-
breaks
in
values
.
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_8
5
_8
6
_a.sql|schema_version'
);
VALUES
(
NULL
,
'patch'
,
'patch_8
6
_8
7
_a.sql|schema_version'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_85_86_b.sql|add dna_align_feature_attrib table'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_85_86_c.sql|meta_case_insensitive'
);
VALUES
(
NULL
,
'patch'
,
'patch_86_87_b.sql|meta_value_NOT_NULL'
);
/**
@table meta_coord
...
...
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