cvs: pear /MDB2_Schema/MDB2 Schema.php

From: Date: Fri, 15 Apr 2005 14:33:03 +0000
Subject: cvs: pear /MDB2_Schema/MDB2 Schema.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31183@lists.php.net to get a copy of this message
lsmith Fri Apr 15 10:33:03 2005 EDT Modified files: /pear/MDB2_Schema/MDB2 Schema.php Log: - always copy schema file in updateDatabase() http://cvs.php.net/diff.php/pear/MDB2_Schema/MDB2/Schema.php?r1=1.5&r2=1.6&ty=u Index: pear/MDB2_Schema/MDB2/Schema.php diff -u pear/MDB2_Schema/MDB2/Schema.php:1.5 pear/MDB2_Schema/MDB2/Schema.php:1.6 --- pear/MDB2_Schema/MDB2/Schema.php:1.5 Fri Apr 15 04:33:14 2005 +++ pear/MDB2_Schema/MDB2/Schema.php Fri Apr 15 10:33:02 2005 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: Schema.php,v 1.5 2005/04/15 08:33:14 lsmith Exp $ +// $Id: Schema.php,v 1.6 2005/04/15 14:33:02 lsmith Exp $ // require_once 'MDB2.php'; @@ -1817,12 +1817,11 @@ if (PEAR::isError($result)) { return $result; } - if ($previous_schema_file && !copy($current_schema_file, $previous_schema_file)) { - return $this->raiseError(MDB2_ERROR_MANAGER, null, null, - 'Could not copy the new database definition file to the current file'); - } } - + if ($previous_schema_file && !copy($current_schema_file, $previous_schema_file)) { + return $this->raiseError(MDB2_ERROR_MANAGER, null, null, + 'Could not copy the new database definition file to the current file'); + } return MDB2_OK; }

« previous php.pear.cvs (#31183) next »