Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
3678932e
Commit
3678932e
authored
Aug 29, 2013
by
Magali Ruffier
Browse files
added correct patch for meta table
now supports meta for schema_patcher and release version control
parent
5248d635
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
misc-scripts/ontology/sql/patch_72_73_b.sql
misc-scripts/ontology/sql/patch_72_73_b.sql
+15
-0
misc-scripts/ontology/sql/tables.sql
misc-scripts/ontology/sql/tables.sql
+3
-0
No files found.
misc-scripts/ontology/sql/patch_72_73_b.sql
0 → 100644
View file @
3678932e
-- patch_72_73_a.sql
--
-- Title: Insert schema version.
--
-- Description:
-- Adding schema version to the meta table (set to 73)
-- so that script schema_patcher.pl would work
ALTER
TABLE
meta
ADD
COLUMN
species_id
INT
(
1
)
UNSIGNED
DEFAULT
NULL
;
-- Patch identifier
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_72_73_b.sql|meta_species'
);
misc-scripts/ontology/sql/tables.sql
View file @
3678932e
...
...
@@ -7,6 +7,7 @@ CREATE TABLE meta (
meta_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
meta_key
VARCHAR
(
64
)
NOT
NULL
,
meta_value
VARCHAR
(
128
),
species_id
INT
UNSIGNED
DEFAULT
NULL
,
PRIMARY
KEY
(
meta_id
),
UNIQUE
INDEX
key_value_idx
(
meta_key
,
meta_value
)
...
...
@@ -20,6 +21,8 @@ INSERT INTO meta (meta_key, meta_value) VALUES
#
Patches
included
in
this
schema
file
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_72_73_a.sql|schema_version'
);
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_72_73_b.sql|meta_species'
);
CREATE
TABLE
ontology
(
ontology_id
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment