cvs: pearweb / pearweb.php

From: Date: Tue, 20 Feb 2007 02:46:20 +0000
Subject: cvs: pearweb / pearweb.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5448@lists.php.net to get a copy of this message
cellog Tue Feb 20 02:46:20 2007 UTC Modified files: /pearweb pearweb.php Log: add a helpful message if the database is the same http://cvs.php.net/viewvc.cgi/pearweb/pearweb.php?r1=1.6&r2=1.7&diff_format=u Index: pearweb/pearweb.php diff -u pearweb/pearweb.php:1.6 pearweb/pearweb.php:1.7 --- pearweb/pearweb.php:1.6 Wed Nov 29 04:15:50 2006 +++ pearweb/pearweb.php Tue Feb 20 02:46:20 2007 @@ -153,6 +153,10 @@ // get a database diff (MDB2_Schema is very useful here) $c = $a->compareDefinitions($c, $curdef); } + if ($c == array()) { + $this->_ui->outputData('No difference, no changes made to database'); + return true; + } PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN); $err = $a->createDatabase($c); PEAR::staticPopErrorHandling();

« previous php.pear.core (#5448) next »