1 package DBIx::Class::Schema::Journal::DB::Change;
3 use base 'DBIx::Class';
5 __PACKAGE__->load_components(qw/Ordered Core/);
6 __PACKAGE__->table('change');
8 __PACKAGE__->add_columns(
10 data_type => 'integer',
11 is_auto_increment => 1,
16 data_type => 'integer',
21 data_type => 'integer',
27 __PACKAGE__->set_primary_key('ID');
28 __PACKAGE__->add_unique_constraint('setorder', [ qw/changeset_id order_in/ ]);
29 __PACKAGE__->belongs_to('changeset', 'DBIx::Class::Schema::Journal::DB::ChangeSet', 'changeset_id');
31 __PACKAGE__->position_column('order_in');
32 __PACKAGE__->grouping_column('changeset_id');