The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Audit DB should exclude databasechangeloglock (#69487)
Nathan Voxland7bf638e16e19
diff --git a/enterprise/backend/src/metabase_enterprise/audit_app/audit.clj b/enterprise/backend/src/metabase_enterprise/audit_app/audit.cljindex 930945a9d65..642218014ea 100644--- a/enterprise/backend/src/metabase_enterprise/audit_app/audit.clj+++ b/enterprise/backend/src/metabase_enterprise/audit_app/audit.clj@@ -98,8 +98,9 @@(let [table-ids-to-update (t2/query {:select [:table.id]:from [[(t2/table-name :model/Table) :table]]:where [:and [:= :table.db_id audit-db-id]- ;; Exclude DATABASECHANGELOG and QRTZ_* tables, they are not metabase managed+ ;; Exclude DATABASECHANGELOG, DATABASECHANGELOGLOCK, and QRTZ_* tables, they are not metabase managed[:not= :table.name [:inline "DATABASECHANGELOG"]]+ [:not= :table.name [:inline "DATABASECHANGELOGLOCK"]] ;; new instances do not get this file, but existing instances may have it[:not [:like :table.name [:inline "QRTZ_%"]]][:not [:exists {:select [1]:from [[(t2/table-name :model/Table) :self_table]]