0.3.3
What's Changed
Fixed
- Fixed
PG::DatatypeMismatch: UNION types <pk_type> and bigint cannot be matchedwhen opening the dashboard on hosts whereRails.configuration.generators.options[:active_record][:primary_key_type] = :uuid(or:integer) caused the install migration to create the audit tables with a non-bigint primary key. The dashboard's UNION betweenathar_deletionsandathar_table_eventsnow resolves the auditidSQL type at runtime and types the empty UNION leg accordingly, so it composes cleanly regardless of the host's primary-key choice.
Added
Athar.audit_connectionandAthar.audit_db_configmodule methods centralizing the connection both audit tables share. Multi-database hosts can route audit storage to a dedicated connection by callingAthar::Deletion.connects_to(...)in an initializer; the dashboard, retention, and generators follow automatically. The dashboard topbar now reflects the audit DB name when this routing is configured.FeedQueryraisesArgumentErrorup-front whenathar_deletions.idandathar_table_events.idresolve to different SQL types, replacing a cryptic Postgres UNION error with a clear message naming both tables and their detected types.
Full Changelog: 0.3.2...0.3.3