From de0586c126db59f1318176d3ab6368ba61f38e86 Mon Sep 17 00:00:00 2001 From: Andrew Yates <ayates@ebi.ac.uk> Date: Mon, 5 Nov 2012 09:39:27 +0000 Subject: [PATCH] New patch which brings back the data_file's missing auto_increment declaration from patched databases. This does affect new databases created from the table.sql file. --- sql/patch_69_70_d.sql | 14 ++++++++++++++ sql/table.sql | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 sql/patch_69_70_d.sql diff --git a/sql/patch_69_70_d.sql b/sql/patch_69_70_d.sql new file mode 100644 index 0000000000..2b49e2a7a1 --- /dev/null +++ b/sql/patch_69_70_d.sql @@ -0,0 +1,14 @@ +# patch_69_70_d.sql +# +# Title: Restore data_file AUTO_INCREMENT field +# +# Description: patch_69_70_c.sql erased the AUTO_INCREMENT from data_file_id. +# This patch brings it back. + +ALTER TABLE data_file MODIFY COLUMN data_file_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT; + +# Patch identifier +INSERT INTO meta (species_id, meta_key, meta_value) + VALUES (NULL, 'patch', 'patch_69_70_d.sql|data_file_id_auto_increment'); + + diff --git a/sql/table.sql b/sql/table.sql index ec582373a9..a865a47447 100755 --- a/sql/table.sql +++ b/sql/table.sql @@ -517,6 +517,9 @@ INSERT INTO meta (species_id, meta_key, meta_value) VALUES INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_69_70_c.sql|column_datatype_consistency') ; +INSERT INTO meta (species_id, meta_key, meta_value) VALUES + (NULL, 'patch', 'patch_69_70_d.sql|data_file_id_auto_increment') + ; /** @table meta_coord -- GitLab