Commit 5feaa134 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 573450: Make the keyworddefs.description column be NOT NULL in the

database r=timello, a=mkanat
parent 3f12fe1c
......@@ -507,7 +507,7 @@ use constant ABSTRACT_SCHEMA => {
id => {TYPE => 'SMALLSERIAL', NOTNULL => 1,
PRIMARYKEY => 1},
name => {TYPE => 'varchar(64)', NOTNULL => 1},
description => {TYPE => 'MEDIUMTEXT'},
description => {TYPE => 'MEDIUMTEXT', NOTNULL => 1},
],
INDEXES => [
keyworddefs_name_idx => {FIELDS => ['name'],
......
......@@ -618,6 +618,8 @@ sub update_table_definitions {
$dbh->bz_alter_column('attachments', 'ispatch',
{ TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE'});
$dbh->bz_alter_column('keyworddefs', 'description',
{ TYPE => 'MEDIUMTEXT', NOTNULL => 1 }, '');
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
......
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