version 0.03 - fixed error verbage as per mst req - import into new repo
[dbsrgits/DBIx-Class-InflateColumn-Object-Enum.git] / t / lib / TestDB / VarcharEnumNullable.pm
1 package TestDB::VarcharEnumNullable;
2
3 use strict;
4 use warnings;
5
6 use base 'DBIx::Class';
7
8 __PACKAGE__->load_components(qw/
9     InflateColumn::Object::Enum
10     PK::Auto
11     Core
12 /);
13 __PACKAGE__->table('ven');
14 __PACKAGE__->add_columns(
15     id => {
16         data_type => 'number',
17         is_auto_increment => 1,
18         is_nullable => 0
19     },
20     enum => {
21         data_type => 'varchar',
22         is_enum => 1,
23         is_nullable => 1,
24         extra => {
25             list => [qw/red green blue/]
26         },
27     }
28 );
29 __PACKAGE__->set_primary_key('id');
30
31 1;