Commit 3f12fe1c authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 573441: Add a DEFAULT and NOTNULL to the attachments.ispatch column

r=timello, a=mkanat
parent 568c989a
......@@ -443,7 +443,8 @@ use constant ABSTRACT_SCHEMA => {
modification_time => {TYPE => 'DATETIME', NOTNULL => 1},
description => {TYPE => 'TINYTEXT', NOTNULL => 1},
mimetype => {TYPE => 'TINYTEXT', NOTNULL => 1},
ispatch => {TYPE => 'BOOLEAN'},
ispatch => {TYPE => 'BOOLEAN', NOTNULL => 1,
DEFAULT => 'FALSE'},
filename => {TYPE => 'varchar(100)', NOTNULL => 1},
submitter_id => {TYPE => 'INT3', NOTNULL => 1,
REFERENCES => {TABLE => 'profiles',
......
......@@ -616,6 +616,9 @@ sub update_table_definitions {
$dbh->bz_alter_column('group_control_map', 'othercontrol',
{TYPE => 'INT1', NOTNULL => 1, DEFAULT => CONTROLMAPNA});
$dbh->bz_alter_column('attachments', 'ispatch',
{ TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE'});
################################################################
# 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