Skip to content
Snippets Groups Projects
Commit 78534d2c authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Change version column in xref to be default 0, not null.

parent 9a73f2f2
No related branches found
No related tags found
No related merge requests found
# 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.
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