Skip to content
Snippets Groups Projects
Commit 698b5310 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

# patch_59_60_c.sql

#
# Title:
#   A patch to fix a couple of inconsistencies in the schema.
#
# Description:
#   A couple of fixes to the schema to do with inconsistencies found
#   during QC.
parent 3551facb
No related branches found
No related tags found
No related merge requests found
# patch_59_60_c.sql
#
# Title:
# A patch to fix a couple of inconsistencies in the schema.
#
# Description:
# A couple of fixes to the schema to do with inconsistencies found
# during QC.
# Make the the 'seq_region_start' and 'seq_region_end' fields of the
# 'karyotype' table UNSIGNED (like they are everywhere else).
ALTER TABLE karyotype
MODIFY COLUMN seq_region_start INT(10) UNSIGNED NOT NULL,
MODIFY COLUMN seq_region_end INT(10) UNSIGNED NOT NULL;
# Make 'seq_region.length' UNSIGNED (we do not like negative lengths).
ALTER TABLE seq_region
MODIFY COLUMN length INT(10) UNSIGNED NOT NULL;
# Insert patch identifier.
INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_59_60_c.sql|fix_inconsistencies');
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