From: bbaetz%acm.org <> Date: Sun, 27 Apr 2003 14:19:28 +0000 (+0000) Subject: Bug 203540 - RenameField doesn't get NULL/NOT NULL correct X-Git-Tag: bugzilla-2.17.5~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f016a7980404372d9855215a5107968beb3c82f4;p=thirdparty%2Fbugzilla.git Bug 203540 - RenameField doesn't get NULL/NOT NULL correct r,a=justdave --- diff --git a/checksetup.pl b/checksetup.pl index 7c44eaa680..f3228e804c 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -2120,7 +2120,7 @@ sub RenameField ($$$) if ($$ref[1] ne $newname) { print "Updating field $field in table $table ...\n"; my $type = $$ref[1]; - $type .= " NOT NULL" if $$ref[3]; + $type .= " NOT NULL" if !$$ref[2]; $dbh->do("ALTER TABLE $table CHANGE $field $newname $type");