new tables created with innoDB & utf8 automatically
authorPaul POULAIN <paul@koha-fr.org>
Wed, 24 Oct 2007 19:15:23 +0000 (14:15 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 24 Oct 2007 22:06:16 +0000 (17:06 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
updater/update22to30.pl

index bb7e044..7011698 100755 (executable)
@@ -1821,7 +1821,7 @@ my $DBversion = "3.00.00.000";
     foreach $table ( keys %requiretables ) {
         unless ( $existingtables{$table} ) {
         print "Adding $table table...\n" unless $silent;
-            my $sth = $dbh->prepare("create table $table $requiretables{$table}");
+            my $sth = $dbh->prepare("create table $table $requiretables{$table} ENGINE=InnoDB DEFAULT CHARSET=utf8");
             $sth->execute;
             if ( $sth->err ) {
                 print "Error : $sth->errstr \n";