diff options
author | mkanat%kerio.com <> | 2005-03-12 04:39:19 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-03-12 04:39:19 +0100 |
commit | af17bfb29507e2fd93aca4e6f602c527b0e05bd2 (patch) | |
tree | de4d0d8c19a525eb8b5d5aea019f1f81d9012f8f | |
parent | 3dd2ede0036b42fa7b183a8cdbed3786e5ed305f (diff) | |
download | bugzilla-af17bfb29507e2fd93aca4e6f602c527b0e05bd2.tar.gz bugzilla-af17bfb29507e2fd93aca4e6f602c527b0e05bd2.tar.xz |
Bug 285121: Only run "old" table checks if the database is MySQL
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=glob, a=justdave
-rwxr-xr-x | checksetup.pl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl index 1d3f278e8..dcf6a30af 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1877,6 +1877,15 @@ if (!$class_count) { # Update the tables to the current definition ########################################################################### +# BEGIN LEGACY CHECKS +# The checks in this block are only run on old MySQL databases. +# The checks after this block are cross-db compatible. +# Look for "END LEGACY CHECKS" to find the end of this block. + +# Both legacy code and modern code need this variable. +my @admins = (); +if ($dbh->isa('Bugzilla::DB::Mysql')) { + # really old fields that were added before checksetup.pl existed # but aren't in very old bugzilla's (like 2.1) # Steve Stock (sstock@iconnect-inc.com) @@ -2935,7 +2944,6 @@ sub ListBits { return @res; } -my @admins = (); # The groups system needs to be converted if groupset exists if ($dbh->bz_get_field_def("profiles", "groupset")) { $dbh->bz_add_field('groups', 'last_changed', 'datetime not null'); @@ -3838,6 +3846,10 @@ $dbh->bz_change_field_type('bugs', 'votes', 'mediumint not null default 0'); # 2005-03-03 travis@sedsystems.ca -- Bug 41972 add_setting ("display_quips", {"on" => 1, "off" => 2 }, "on" ); +} # END LEGACY CHECKS + + + # If you had to change the --TABLE-- definition in any way, then add your # differential change code *** A B O V E *** this comment. # |