Skip to content
Snippets Groups Projects
Commit 329b385e authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-633 species_id column to meta table

not used directly in the ontology database but allows for compatibility with the core MetaContainer and release version tracking
parent 43b27325
No related branches found
No related tags found
No related merge requests found
-- 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');
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment