Commit | Line | Data |
4740bdb7 |
1 | package |
2 | DBICTest::Schema::FileColumn; |
3 | |
4 | use strict; |
5 | use warnings; |
660cf1be |
6 | use base qw/DBICTest::BaseResult/; |
26ddc864 |
7 | use File::Temp qw/tempdir/; |
4740bdb7 |
8 | |
28d4067a |
9 | __PACKAGE__->load_components(qw/InflateColumn::File/); |
4740bdb7 |
10 | |
11 | __PACKAGE__->table('file_columns'); |
12 | |
13 | __PACKAGE__->add_columns( |
14 | id => { data_type => 'integer', is_auto_increment => 1 }, |
26ddc864 |
15 | file => { |
16 | data_type => 'varchar', |
17 | is_file_column => 1, |
18 | file_column_path => tempdir(CLEANUP => 1), |
19 | size => 255 |
20 | } |
4740bdb7 |
21 | ); |
22 | |
23 | __PACKAGE__->set_primary_key('id'); |
24 | |
25 | 1; |