Skip to content

Custom columns and custom data in the audit tables #160

@janklan

Description

@janklan

I'm wondering what could be the best approach to being able to store some custom metadata with each record in the audit tables?

Do I need a custom provider? How would I tell Auditor about the new column in the schema? I found a few options (hooking into the AuditEvent, extending DoctrineProvider and so on), but it all feels hacky.

Could you point me in some direction? I'd be happy to then either improve readme, or submit a PR for whoever is interested.

The background for this need is adding a tenant_id column to each audit row so that we can apply row-level security on server-side with PostgreSQL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions