diff --git a/CHANGES.rst b/CHANGES.rst index b1b7754..d8294fd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,7 @@ Unreleased ^^^^^^^^^^ - **BREAKING CHANGE**: Dropped support for Python 3.8 and 3.9. +- Reference unique constraint on transaction.native_transaction_id with the name of the column instead of the constraint name. 0.18.0 (2026-04-15) diff --git a/postgresql_audit/base.py b/postgresql_audit/base.py index 528fda9..c9a2047 100644 --- a/postgresql_audit/base.py +++ b/postgresql_audit/base.py @@ -316,7 +316,7 @@ def set_activity_values(self, session): insert(table) .values(**values) .on_conflict_do_nothing( - constraint='transaction_unique_native_tx_id' + index_elements=('native_transaction_id',) ) ) session.execute(stmt)