CVS update: /cowiki/htdocs/setup/class/task/migrator/

[email protected] 6 May 2005 02:45:59 -0000
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
User: dgorski 
Date: 2005/05/05 19:45:59

Modified:
   cowiki/htdocs/setup/class/task/migrator/class.Migrator_0.php

Log:
 Allow "references_priv" in "mysql.db" table when creating users

File Changes:

Directory: /cowiki/htdocs/setup/class/task/migrator/
====================================================

File [changed]: class.Migrator_0.php
Url: http://cowiki.tigris.org/source/browse/cowiki/htdocs/setup/class/task/migrator/class.Migrator_0.php?r1=1.3&r2=1.4
Delta lines:  +4 -3
-------------------
--- class.Migrator_0.php	6 May 2005 02:16:18 -0000	1.3
+++ class.Migrator_0.php	6 May 2005 02:45:57 -0000	1.4
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.Migrator_0.php,v 1.3 2005/05/06 02:16:18 dgorski Exp $
+ * $Id: class.Migrator_0.php,v 1.4 2005/05/06 02:45:57 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -17,7 +17,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.3 $
+ * @version     $Revision: 1.4 $
  *
  */
 
@@ -130,6 +130,7 @@
                                delete_priv            = 'Y',
                                create_priv            = 'Y',
                                drop_priv              = 'Y',
+                               references_priv        = 'Y',
                                index_priv             = 'Y',
                                alter_priv             = 'Y',
                                create_tmp_table_priv  = 'Y',
@@ -174,7 +175,7 @@
 
             // ---
 
-            $Storage->query("CREATE DATABASE ".$sDB);
+            $Storage->query('CREATE DATABASE '.$sDB);
             $Storage->useDatabase($sDB);
             
             // Create basic schema