Commit | Line | Data |
53de57ed |
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 | baz => { |
19 | data_type => 'VARCHAR', |
20 | size => '10', |
21 | is_nullable => 1, |
22 | }, |
23 | biff => { |
24 | data_type => 'VARCHAR', |
25 | size => '10', |
26 | is_nullable => 1, |
27 | }, |
28 | ); |
29 | |
30 | __PACKAGE__->set_primary_key('foo'); |
31 | |
32 | package DBICVersion::Schema; |
33 | use base 'DBIx::Class::Schema'; |
34 | use strict; |
35 | use warnings; |
36 | |
37 | our $VERSION = '3.0'; |
38 | |
39 | __PACKAGE__->register_class('Foo', 'DBICVersion::Foo'); |
40 | |
41 | 1; |