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 | |
4740bdb7 |
9 | __PACKAGE__->table('file_columns'); |
10 | |
11 | __PACKAGE__->add_columns( |
12 | id => { data_type => 'integer', is_auto_increment => 1 }, |
26ddc864 |
13 | file => { |
14 | data_type => 'varchar', |
15 | is_file_column => 1, |
16 | file_column_path => tempdir(CLEANUP => 1), |
17 | size => 255 |
18 | } |
4740bdb7 |
19 | ); |
20 | |
21 | __PACKAGE__->set_primary_key('id'); |
22 | |
23 | 1; |