Commit 2ca283e7 authored by Edmund Wong's avatar Edmund Wong Committed by Max Kanat-Alexander

Bug 463945: Add default values for membercontrol and othercontrol

in group_control_map, and fix their DB type to be correct r=mkanat, a=mkanat
parent dea4b333
......@@ -1037,8 +1037,10 @@ use constant ABSTRACT_SCHEMA => {
DELETE => 'CASCADE'}},
entry => {TYPE => 'BOOLEAN', NOTNULL => 1,
DEFAULT => 'FALSE'},
membercontrol => {TYPE => 'BOOLEAN', NOTNULL => 1},
othercontrol => {TYPE => 'BOOLEAN', NOTNULL => 1},
membercontrol => {TYPE => 'INT1', NOTNULL => 1,
DEFAULT => CONTROLMAPNA},
othercontrol => {TYPE => 'INT1', NOTNULL => 1,
DEFAULT => CONTROLMAPNA},
canedit => {TYPE => 'BOOLEAN', NOTNULL => 1,
DEFAULT => 'FALSE'},
editcomponents => {TYPE => 'BOOLEAN', NOTNULL => 1,
......
......@@ -604,6 +604,12 @@ sub update_table_definitions {
# 2010-04-07 LpSolit@gmail.com - Bug 69621
$dbh->bz_drop_column('bugs', 'keywords');
# 2010-05-07 ewong@pw-wspx.org - Bug 463945
$dbh->bz_alter_column('group_control_map', 'membercontrol',
{TYPE => 'INT1', NOTNULL => 1, DEFAULT => CONTROLMAPNA});
$dbh->bz_alter_column('group_control_map', 'othercontrol',
{TYPE => 'INT1', NOTNULL => 1, DEFAULT => CONTROLMAPNA});
################################################################
# 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