[Rt-commit] r10932 - rt/branches/3.7-EXPERIMENTAL/sbin

ruz at bestpractical.com ruz at bestpractical.com
Mon Feb 25 18:34:18 EST 2008


Author: ruz
Date: Mon Feb 25 18:34:17 2008
New Revision: 10932

Modified:
   rt/branches/3.7-EXPERIMENTAL/sbin/rt-setup-database.in

Log:
* activate check for mysql schema

Modified: rt/branches/3.7-EXPERIMENTAL/sbin/rt-setup-database.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/sbin/rt-setup-database.in	(original)
+++ rt/branches/3.7-EXPERIMENTAL/sbin/rt-setup-database.in	Mon Feb 25 18:34:17 2008
@@ -237,15 +237,15 @@
                 exit -1;
             }
         }
-#        if ( $version >= 4.1 && $args{'action'} =~ /^(insert|schema)$/ ) {
-#            print "MySQL >= 4.1, checking that user upgraded.\n" if $args{'debug'};
-#            my $create_table = $dbh->selectrow_arrayref("SHOW CREATE TABLE Attachments")->[1];
-#            unless ( $create_table =~ /\bContent\b[^,]*BLOB/i ) {
-#                print STDERR "*** WARNING: RT since version 3.6 has new schema for MySQL versions after 4.1.0\n"
-#                    ."Follow instructions in the UPGRADING.mysql file.\n";
-#                sleep 3;
-#            }
-#        }
+        if ( $version >= 4.1 && $args{'action'} =~ /^(insert|schema)$/ ) {
+            print "MySQL >= 4.1, checking that user upgraded.\n" if $args{'debug'};
+            my $create_table = $dbh->selectrow_arrayref("SHOW CREATE TABLE Attachments")->[1];
+            unless ( $create_table =~ /\bContent\b[^,]*BLOB/i ) {
+                print STDERR "*** WARNING: RT since version 3.8 has new schema for MySQL versions after 4.1.0\n"
+                    ."Follow instructions in the UPGRADING.mysql file.\n";
+                sleep 3;
+            }
+        }
     }
 }
 


More information about the Rt-commit mailing list