r1549: Change the collation of the database to be 'utf8_general_ci' before we begin...
authorRobert Sesek <rsesek@bluestatic.org>
Fri, 1 Jun 2007 05:49:49 +0000 (05:49 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Fri, 1 Jun 2007 05:49:49 +0000 (05:49 +0000)
install/install.php

index 5a9ff4ad3b51f2b2075ab169b213910815596129..17d9fb720960ca9134fadff09d07f4a06cba1a52 100644 (file)
@@ -22,6 +22,9 @@
 define('STOP_MARK', 8);
 define('ACTIVE_SITE', 'install.php');
 
+// the collation used for installation
+$COLLATION = 'utf8_general_ci';
+
 require_once('./global.php');
 
 page_start();
@@ -121,6 +124,9 @@ if ($bugsys->in['mark'] == 2)
 
 <?php
        
+       require './includes/config.php';
+       $db->query("ALTER DATABASE $database COLLATE $COLLATION");
+       
        require_once('./install/schema.php');
        
        foreach ($schema AS $table => $query)