restructure namespace
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / VersionStorage / Standard / VersionResult.pm
CommitLineData
30c3818a 1package DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult;
8ba006d6 2
3use strict;
4use warnings;
5
12fdd461 6use 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',
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
31__PACKAGE__->set_primary_key('installed');
32__PACKAGE__->add_unique_constraint(['version']);
30c3818a 33__PACKAGE__->resultset_class('DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResultSet');
8ba006d6 34
351;