Commit | Line | Data |
c5f3507b |
1 | package TestDB::WithBadDefaultValue; |
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('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 | |
32 | 1; |
33 | |