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
CommitLineData
86d6940e 1package TestDB::VarcharEnumNullable;
2
3use strict;
4use warnings;
5
6use 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
311;