File Coverage

blib/lib/DBIx/Class/DeploymentHandler/VersionStorage/WithSchema/VersionResult.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1 1     1   7 use strict;
  1         3  
  1         25  
2 1     1   5 use warnings;
  1         2  
  1         47  
3             package DBIx::Class::DeploymentHandler::VersionStorage::WithSchema::VersionResult;
4              
5             our $VERSION = '0.001';
6              
7 1     1   5 use parent 'DBIx::Class::Core';
  1         3  
  1         8  
8              
9             __PACKAGE__->table('dbix_class_deploymenthandler_versions_withschemata');
10              
11             __PACKAGE__->add_columns(
12             id => {
13             data_type => 'int',
14             is_auto_increment => 1,
15             },
16             schema => {
17             data_type => 'text',
18             },
19             version => {
20             data_type => 'text',
21             },
22             ddl => {
23             data_type => 'text',
24             is_nullable => 1,
25             },
26             upgrade_sql => {
27             data_type => 'text',
28             is_nullable => 1,
29             },
30             );
31              
32             __PACKAGE__->set_primary_key('id');
33             __PACKAGE__->add_unique_constraint(['schema', 'version']);
34             __PACKAGE__->resultset_class('DBIx::Class::DeploymentHandler::VersionStorage::WithSchema::VersionResultSet');
35              
36             1;