Schema/Journal/DB/ChangeLog.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Schema/Journal/DB/ChangeSet.pm ↑ Summary
1 package DBIx::Class::Schema::Journal::DB::ChangeLog;
2  
3 2 ▶use base 'DBIx::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # __PACKAGE__->load_components(qw/Core/);
6 2 __PACKAGE__->load_components(qw/Ordered Core/);
7 2 __PACKAGE__->table('changelog');
8  
9 2 __PACKAGE__->add_columns(
10 ID => {
11 data_type => 'integer',
12 is_auto_increment => 1,
13 is_primary_key => 1,
14 is_nullable => 0,
15 },
16 changeset_id => {
17 data_type => 'integer',
18 is_nullable => 0,
19 is_foreign_key => 1,
20 },
21 order_in => {
22 data_type => 'integer',
23 is_nullable => 0,
24 },
25 );
26  
27  
28 2 __PACKAGE__->set_primary_key('ID');
29 2 __PACKAGE__->add_unique_constraint('setorder', [ qw/changeset_id order_in/ ]);
30 2 __PACKAGE__->belongs_to('changeset', 'DBIx::Class::Schema::Journal::DB::ChangeSet', 'changeset_id');
31  
32 2 __PACKAGE__->position_column('order_in');
33 2 __PACKAGE__->grouping_column('changeset_id');
34 2 1;
« Schema/Journal/DB/ChangeSet.pm ↑ Summary