Commit | Line | Data |
---|---|---|
4740bdb7 | 1 | package |
2 | DBICTest::Schema::FileColumn; | |
3 | ||
4 | use strict; | |
5 | use warnings; | |
6 | use base qw/DBIx::Class::Core/; | |
7 | ||
8 | __PACKAGE__->load_components(qw/FileColumn/); | |
9 | ||
10 | __PACKAGE__->table('file_columns'); | |
11 | ||
12 | __PACKAGE__->add_columns( | |
13 | id => { data_type => 'integer', is_auto_increment => 1 }, | |
14 | file => { data_type => 'varchar', is_file_column => 1, file_column_path => '/tmp', size=>255 } | |
15 | ); | |
16 | ||
17 | __PACKAGE__->set_primary_key('id'); | |
18 | ||
19 | 1; |