From 78534d2c314811df1c9413c4c1ccd8dd8873de6a Mon Sep 17 00:00:00 2001 From: Glenn Proctor <gp1@sanger.ac.uk> Date: Fri, 2 Jun 2006 13:48:49 +0000 Subject: [PATCH] Change version column in xref to be default 0, not null. --- sql/patch_39_40_c.sql | 82 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 sql/patch_39_40_c.sql diff --git a/sql/patch_39_40_c.sql b/sql/patch_39_40_c.sql new file mode 100644 index 0000000000..7d1a7159ce --- /dev/null +++ b/sql/patch_39_40_c.sql @@ -0,0 +1,82 @@ +# patch_39_40_c +# +# title: xref version +# +# description: +# Change version column in xref to be default 0, not allow null + +ALTER TABLE xref CHANGE COLUMN version version VARCHAR(10) DEFAULT '0' NOT NULL; + +UPDATE xref SET version = '0' WHERE version = NULL OR version = ''; + +# patch identifier +INSERT INTO meta (meta_key, meta_value) VALUES ('patch', 'patch_39_40_c.sql|xref_version'); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# Similarly make all seq_region_start & seq_region_end columns INT(10) UNSIGNED +# Although these are not used as keys, they are used in many joins and having +# the same column type should make joins faster as MySQL will not have to do +# any type casting. + + + + + + + + -- GitLab