Commit 51bb0240 authored by mkanat%kerio.com's avatar mkanat%kerio.com

Bug 286695: bugs.resolution needs a default value

Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
parent ef3ef0d4
......@@ -165,7 +165,8 @@ use constant ABSTRACT_SCHEMA => {
reporter => {TYPE => 'INT3', NOTNULL => 1},
version => {TYPE => 'varchar(64)', NOTNULL => 1},
component_id => {TYPE => 'INT2', NOTNULL => 1},
resolution => {TYPE => 'varchar(64)', NOTNULL => 1},
resolution => {TYPE => 'varchar(64)',
NOTNULL => 1, DEFAULT => "''"},
target_milestone => {TYPE => 'varchar(20)',
NOTNULL => 1, DEFAULT => "'---'"},
qa_contact => {TYPE => 'INT3'},
......
......@@ -3606,8 +3606,9 @@ if (!$dbh->bz_column_info('longdescs', 'already_wrapped')) {
# standard varchars in the bugs table.
$dbh->bz_alter_column('bugs', 'bug_status',
{TYPE => 'varchar(64)', NOTNULL => 1});
# 2005-03-23 Tomas.Kopal@altap.cz - add default value to resolution, bug 286695
$dbh->bz_alter_column('bugs', 'resolution',
{TYPE => 'varchar(64)', NOTNULL => 1});
{TYPE => 'varchar(64)', NOTNULL => 1, DEFAULT => "''"});
$dbh->bz_alter_column('bugs', 'priority',
{TYPE => 'varchar(64)', NOTNULL => 1});
$dbh->bz_alter_column('bugs', 'bug_severity',
......
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