Commit | Line | Data |
30c3818a |
1 | package DBIx::Class::DeploymentHandler::VersionStorage::Standard::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 ( |
3d3e2f00 |
11 | id => { |
ae17010c |
12 | data_type => 'int', |
13 | is_auto_increment => 1, |
14 | }, |
15 | version => { |
16 | data_type => 'varchar', |
7ea1d535 |
17 | # size needs to be at least |
18 | # 40 to support SHA1 versions |
19 | size => '50' |
ae17010c |
20 | }, |
21 | ddl => { |
22 | data_type => 'text', |
23 | is_nullable => 1, |
24 | }, |
25 | upgrade_sql => { |
26 | data_type => 'text', |
27 | is_nullable => 1, |
28 | }, |
8ba006d6 |
29 | ); |
30 | |
3d3e2f00 |
31 | __PACKAGE__->set_primary_key('id'); |
8ba006d6 |
32 | __PACKAGE__->add_unique_constraint(['version']); |
30c3818a |
33 | __PACKAGE__->resultset_class('DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResultSet'); |
8ba006d6 |
34 | |
35 | 1; |