2eee7af8f1efb675fe6a1db02cee490c9bc846cb
[dbsrgits/DBIx-Class-DeploymentHandler.git] / t / lib / DBICVersion_v1.pm
1 package DBICVersion::Foo;
2
3 use base 'DBIx::Class::Core';
4 use strict;
5 use warnings;
6
7 __PACKAGE__->table('Foo');
8
9 __PACKAGE__->add_columns(
10         foo => {
11                 data_type => 'INTEGER',
12                 is_auto_increment => 1,
13         },
14         bar => {
15                 data_type => 'VARCHAR',
16                 size => '10'
17         },
18 );
19
20 __PACKAGE__->set_primary_key('foo');
21
22 package DBICVersion::Schema;
23 use base 'DBIx::Class::Schema';
24 use strict;
25 use warnings;
26
27 our $VERSION = '1.0';
28
29 __PACKAGE__->register_class('Foo', 'DBICVersion::Foo');
30 __PACKAGE__->load_components('DeploymentHandler::VersionStorage::Standard::Component');
31
32 1;