summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-15 14:20:47 +0100
committermkanat%kerio.com <>2005-03-15 14:20:47 +0100
commit0ce44681395c0a6ef5d8a54caa8aca73728b3b25 (patch)
treee804038f1f134bf7d91da9125e45de3703c59ed0 /checksetup.pl
parent0ab2e4bfd6429efa18c46ad76db69ecfa470e750 (diff)
downloadbugzilla-0ce44681395c0a6ef5d8a54caa8aca73728b3b25.tar.gz
bugzilla-0ce44681395c0a6ef5d8a54caa8aca73728b3b25.tar.xz
Bug 285534: bugs.qa_contact should allow NULL
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=joel, a=justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl11
1 files changed, 9 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl
index d9e082ba7..51a264391 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -1854,12 +1854,12 @@ unless ($sth->rows) {
# note: since admin user is not yet known, components gets a 0 for
# initialowner and this is fixed during final checks.
$dbh->do("INSERT INTO components (name, product_id, description, " .
- "initialowner, initialqacontact) " .
+ "initialowner) " .
"VALUES (" .
"'TestComponent', $product_id, " .
"'This is a test component in the test product database. " .
"This ought to be blown away and replaced with real stuff in " .
- "a finished installation of Bugzilla.', 0, 0)");
+ "a finished installation of Bugzilla.', 0)");
$dbh->do(q{INSERT INTO milestones (product_id, value, sortkey)
VALUES (?,?,?)},
undef, $product_id, '---', 0);
@@ -3856,6 +3856,13 @@ if(!$dbh->bz_get_field_def('bugs', 'lastdiffed')->[2]) {
# 2005-03-03 travis@sedsystems.ca -- Bug 41972
add_setting ("display_quips", {"on" => 1, "off" => 2 }, "on" );
+# 2005-03-09 qa_contact should be NULL instead of 0, bug 285534
+if (!$dbh->bz_get_field_def('bugs', 'qa_contact')->[2]) { # if it's NOT NULL
+ $dbh->bz_change_field_type('bugs', 'qa_contact', 'mediumint');
+ $dbh->do("UPDATE bugs SET qa_contact = NULL WHERE qa_contact = 0");
+ $dbh->do("UPDATE components SET initialqacontact = NULL
+ WHERE initialqacontact = 0");
+}
} # END LEGACY CHECKS