X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FSchema.php;h=4551b89a64f6bae1c2e7bb56bc9500cb755fc256;hb=425f113a3e7e3a07d971403d7fc9846ca2119d0c;hp=b34806019f3c6ef12625fe64d576bae0e440873a;hpb=1d7a41bf759575369703cadd1ba0c6bae156d54d;p=civicrm-core.git diff --git a/CRM/Logging/Schema.php b/CRM/Logging/Schema.php index b34806019f..4551b89a64 100644 --- a/CRM/Logging/Schema.php +++ b/CRM/Logging/Schema.php @@ -934,4 +934,16 @@ COLS; 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(); + } + }