Skip to content

2.0.0

Compare
Choose a tag to compare
@DamienHarper DamienHarper released this 25 Mar 08:17
· 352 commits to master since this release

Changelog

  • Complete rewrite of many internal parts to improve testability and lessen complexity.
  • Migration command allowing to change structure of concrete (currently used) audit tables.
  • Tables with non numeric primary keys auditing support (closes #37)
  • Firewall name and user object's Fully Qualified Domain Name are now stored in audit table (cf. #14)
  • Improved unit tests
  • New design of included audit viewer templates (now Bootstrap 4 based)
  • demo app showing off included audit viewer templates

Breaking changes

  • The structure of audit tables has changed so you have to run the migration command right after updating
  • AuditReader and AuditEntry have been moved from DH\DoctrineAuditBundle namespace to DH\DoctrineAuditBundle\Reader namespace.
  • AuditEntry::getUserId() and AuditEntry::getUsername() now return null (instead of "Unknown") when user is undefined

How to upgrade?

Either update your composer.json file manually to include "damienharper/doctrine-audit-bundle": "^2.0"
or run

composer require damienharper/doctrine-audit-bundle ^2.0

Due to internal changes requiring new columns and object_id column type change, run the migration command after updating the bundle to update the structure of your current audit tables.

bin/console audit:schema:update