done refactoring
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / VersionResult.pm
1 package DBIx::Class::DepolymentHandler::VersionResult;
2
3 use strict;
4 use warnings;
5
6 use parent 'DBIx::Class::Core';
7
8 __PACKAGE__->table('dbix_class_deploymenthandler_versions');
9
10 __PACKAGE__->add_columns (
11         installed => {
12                 data_type         => 'int',
13                 is_auto_increment => 1,
14         },
15         version => {
16                 data_type         => 'varchar',
17                 size              => '20'
18         },
19         ddl => {
20                 data_type         => 'text',
21                 is_nullable       => 1,
22         },
23         upgrade_sql => {
24                 data_type         => 'text',
25                 is_nullable       => 1,
26         },
27 );
28
29 __PACKAGE__->set_primary_key('installed');
30 __PACKAGE__->add_unique_constraint(['version']);
31 __PACKAGE__->resultset_class('DBIx::Class::DeploymentHandler::VersionResultSet');
32
33 1;