Commit 3678932e authored by Magali Ruffier's avatar Magali Ruffier
Browse files

added correct patch for meta table

now supports meta for schema_patcher and release version control
parent 5248d635
-- 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,
......
Markdown is supported
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