/** * Pull all known table checksums into an array for easy lookup. * * @return array: associative array of table names to checksum strings */ protected function getChecksums() { $checksums = array(); try { $sv = new Schema_version(); $sv->find(); while ($sv->fetch()) { $checksums[$sv->table_name] = $sv->checksum; } return $checksums; } catch (Exception $e) { // no dice! common_log(LOG_DEBUG, "Possibly schema_version table doesn't exist yet."); } return $checksums; }
/** * Pull all known table checksums into an array for easy lookup. * * @return array: associative array of table names to checksum strings */ protected function getChecksums() { $checksums = array(); PEAR::pushErrorHandling(PEAR_ERROR_RETURN); try { $sv = new Schema_version(); $sv->find(); while ($sv->fetch()) { $checksums[$sv->table_name] = $sv->checksum; } return $checksums; } catch (Exception $e) { // no dice! common_debug("Possibly schema_version table doesn't exist yet."); } PEAR::popErrorHandling(); return $checksums; }