Commit | Line | Data |
f8fbaf04 |
1 | package DBIx::Class::DeploymentHandler::VersionResult; |
8ba006d6 |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
12fdd461 |
6 | use parent 'DBIx::Class::Core'; |
8ba006d6 |
7 | |
8 | __PACKAGE__->table('dbix_class_deploymenthandler_versions'); |
9 | |
10 | __PACKAGE__->add_columns ( |
ae17010c |
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 | }, |
8ba006d6 |
27 | ); |
28 | |
29 | __PACKAGE__->set_primary_key('installed'); |
30 | __PACKAGE__->add_unique_constraint(['version']); |
12fdd461 |
31 | __PACKAGE__->resultset_class('DBIx::Class::DeploymentHandler::VersionResultSet'); |
8ba006d6 |
32 | |
33 | 1; |