tables = array_reverse($json->tables); foreach ($json->tables as $table) { print "Dropping {$table->schema}.{$table->name}"; $db->drop($table->schema, $table->name); } print "Update"; } ?>