NAME

DBIO::ChangeLog::Entry - ResultSource definition for per-source changelog tables

VERSION

version 0.900000

DESCRIPTION

Defines the base column layout for <source>_changelog tables. Each tracked ResultSource gets its own changelog table with these columns.

The DBIO::ChangeLog::Schema component uses this definition when dynamically creating changelog ResultSource objects at schema composition time.

ATTRIBUTES

id

Integer primary key, auto-increment.

changeset_id

Optional integer FK pointing to "id" in DBIO::ChangeLog::Set. NULL for custom events logged outside a transaction.

row_id

varchar(255) containing the serialized primary key of the tracked row. Single-column PKs store the value directly; multi-column PKs use a JSON array.

event

varchar(64) identifying the operation: insert, update, delete, or a custom event name.

changes

text column containing JSON-encoded change data. The format depends on the event type (see DBIO::ChangeLog for details).

created_at

datetime, NOT NULL. Automatically set when the entry is created.

COLUMN DEFINITIONS

SEE ALSO

DBIO::ChangeLog, DBIO::ChangeLog::Schema, DBIO::ChangeLog::Table

AUTHOR

DBIO & DBIx::Class Authors

COPYRIGHT AND LICENSE

Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.