comparison managedb.php @ 776:81807c56153e

Add some error checking for missing source tables in upgrades.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 20 Nov 2014 15:44:37 +0200
parents b84fc6e7847e
children 390241b1d549
comparison
equal deleted inserted replaced
775:62a98cb255f7 776:81807c56153e
258 if ($inTable === FALSE || in_array($inTable, $excluded) || in_array($table, $excluded)) 258 if ($inTable === FALSE || in_array($inTable, $excluded) || in_array($table, $excluded))
259 continue; 259 continue;
260 260
261 // Process each row of the input table 261 // Process each row of the input table
262 echo " - '".$table."' "; 262 echo " - '".$table."' ";
263 foreach (stDBExecSQL($inDB, "SELECT * FROM ".$inTable) as $row) 263 $query = stDBExecSQL($inDB, "SELECT * FROM ".$inTable);
264 if ($query === FALSE)
265 {
266 echo "SKIPPED!";
267 }
268 else
269 foreach ($query as $row)
264 { 270 {
265 // Convert to new schema, as needed 271 // Convert to new schema, as needed
266 $avals = array(); 272 $avals = array();
267 $acols = array(); 273 $acols = array();
268 274