cvs: pear /LiveUser/sql install.php
| From: | Lukas Smith | Date: | Wed, 12 Oct 2005 11:59:23 +0000 |
| Subject: | cvs: pear /LiveUser/sql install.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35441@lists.php.net to get a copy of this message | ||
lsmith Wed Oct 12 07:59:23 2005 EDT
Modified files:
/pear/LiveUser/sql install.php
Log:
- added ability to disable executing the sql commands on installSchema()
http://cvs.php.net/diff.php/pear/LiveUser/sql/install.php?r1=1.33&r2=1.34&ty=u
Index: pear/LiveUser/sql/install.php
diff -u pear/LiveUser/sql/install.php:1.33 pear/LiveUser/sql/install.php:1.34
--- pear/LiveUser/sql/install.php:1.33 Thu Sep 29 15:51:40 2005
+++ pear/LiveUser/sql/install.php Wed Oct 12 07:59:23 2005
@@ -35,7 +35,7 @@
* @author Lukas Smith <smith@pooteeweet.org>
* @copyright 2002-2005 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: install.php,v 1.33 2005/09/29 19:51:40 lsmith Exp $
+ * @version CVS: $Id: install.php,v 1.34 2005/10/12 11:59:23 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -228,7 +228,7 @@
}
function installSchema($obj, $file, $variables = array(), $create = true,
- $options = array(), $unlink = false)
+ $options = array(), $unlink = false, $disable_query = false)
{
$dsn = $obj->dbc->dsn;
if (is_a($obj->dbc, 'DB_Common')) {
@@ -250,7 +250,7 @@
if ($unlink) {
unlink($file_old);
}
- $result = $manager->updateDatabase($file, $file_old, $variables);
+ $result = $manager->updateDatabase($file, $file_old, $variables, $disable_query);
$debug = $manager->db->getOption('debug');
if ($debug && !PEAR::isError($debug)) {