+* Added support for SET fields in the mysql producer + test (groditi)
* Added support for proper booleans in the mysql producer, when a mysql version of at least 4.x is supplied
* Added support for proper enums under pg (as of 8.3), with pg version check, and deferrable constraints
* Added support to truncate long constraint and index names in the mysql producer, because of a change to DBIx::Class to produce such long names in some cases.
$field_def .= " $data_type";
- if ( lc $data_type eq 'enum' ) {
+ if ( lc($data_type) eq 'enum' || lc($data_type) eq 'set') {
$field_def .= '(' . $commalist . ')';
- }
+ }
elsif ( defined $size[0] && $size[0] > 0 ) {
$field_def .= '(' . join( ', ', @size ) . ')';
}
data_type: int
order: 2
is_not_null: 1
+ bar_set:
+ name: bar_set
+ data_type: set
+ order: 3
+ is_not_null: 1
+ extra:
+ list:
+ - foo
+ - bar
+ - baz
indices:
- type: NORMAL
- fields:
+ fields:
- id
name: index_1
- type: NORMAL
- fields:
+ fields:
- id
name: really_long_name_bigger_than_64_chars_aaaaaaaaaaaaaaaaaaaaaaaaaaa
constraints:
`id` integer,
`foo` integer,
`foo2` integer,
+ `bar_set` set('foo', 'bar', 'baz'),
INDEX index_1 (`id`),
INDEX really_long_name_bigger_than_64_chars_aaaaaaaaaaaaaaaaa_aed44c47 (`id`),
INDEX (`foo`),