}
\Civi::$statics[__CLASS__]['columnsOf'][$table] = array();
while ($dao->fetch()) {
- \Civi::$statics[__CLASS__]['columnsOf'][$table][] = $dao->Field;
+ \Civi::$statics[__CLASS__]['columnsOf'][$table][] = CRM_Utils_type::escape($dao->Field, 'MysqlColumnNameOrAlias');
}
}
return \Civi::$statics[__CLASS__]['columnsOf'][$table];
return array_intersect($tables, $this->tables);
}
+ /**
+ * Retrieve missing log tables.
+ *
+ * @return array
+ */
+ public function getMissingLogTables() {
+ if ($this->tablesExist()) {
+ return array_diff($this->tables, array_keys($this->logs));
+ }
+ return array();
+ }
+
}