[Rt-commit] r6911 - rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/sbin
ruz at bestpractical.com
ruz at bestpractical.com
Fri Feb 2 20:44:06 EST 2007
Author: ruz
Date: Fri Feb 2 20:44:06 2007
New Revision: 6911
Modified:
rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/sbin/rt-setup-database.in
Log:
* MySQL 4.0 reports TYPE instead of ENGINE
Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/sbin/rt-setup-database.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/sbin/rt-setup-database.in (original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/sbin/rt-setup-database.in Fri Feb 2 20:44:06 2007
@@ -633,8 +633,8 @@
if ( $args{'action'} =~ /^(insert|schema)$/ ) {
print "Checking that Tickets table is of InnoDB type.\n" if $args{'debug'};
my $create_table = $dbh->selectrow_arrayref("SHOW CREATE TABLE Tickets")->[1];
- unless ( $create_table =~ /ENGINE=InnoDB/ ) {
- print STDERR 'RT requires that all its tables be of InnoDB type.\n'.
+ unless ( $create_table =~ /(?:ENGINE|TYPE)=InnoDB/i ) {
+ print STDERR "RT requires that all its tables be of InnoDB type.\n".
"Upgrade RT tables.\n";
exit -1;
}
More information about the Rt-commit
mailing list