make mysql tables utf-8 by default
authorChuck Hagenbuch <chuck@horde.org>
Mon, 22 Dec 2008 21:40:00 +0000 (16:40 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 22 Dec 2008 21:40:00 +0000 (16:40 -0500)
framework/Db/lib/Horde/Db/Adapter/Mysql/TableDefinition.php

index 0fdf35e..8c19fe2 100644 (file)
@@ -30,7 +30,7 @@ class Horde_Db_Adapter_Mysql_TableDefinition extends Horde_Db_Adapter_Abstract_T
     public function end()
     {
         if (empty($this->_options['temporary'])) {
-            $this->_options['options'] = 'ENGINE=InnoDB';
+            $this->_options['options'] = 'ENGINE=InnoDB DEFAULT CHARSET=utf8';
         }
         return parent::end();
     }