fixes https://rt.cpan.org/Ticket/Display.html?id=93432
[dbsrgits/DBIx-Class-InflateColumn-Object-Enum.git] / t / lib / TestDB / WithBadDefaultValue.pm
CommitLineData
c5f3507b 1package TestDB::WithBadDefaultValue;
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('withbaddefaultvalue');
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 => 0,
24 default_value => 'badvalue',
25 extra => {
26 list => [qw/red green blue/]
27 },
28 }
29);
30__PACKAGE__->set_primary_key('id');
31
321;
33