Revision history for Perl extension DBIx::Class::Schema::Loader
+ - Generate custom_type_name hint for PostgreSQL enums, as used
+ by very recent SQL::Translator
- Added support for PostgreSQL enum types
- Added table/column comment support for Oracle
- Fix missing require (RT#62072)
EOF
if (@$typevalues) {
+ # This is an enum type. Store its original name in extra for SQLT to pick up.
$extra_info{extra}{list} = [ map { $_->[0] } @$typevalues ];
+ $extra_info{extra}{custom_type_name} = $info->{data_type};
}
return \%extra_info;
bytea => { data_type => 'bytea' },
# Enum Types
- pg_loader_test_enum => { data_type => 'enum', extra => { list => [ qw/foo bar baz/] }, size => 4 },
+ pg_loader_test_enum => { data_type => 'enum', extra => { custom_type_name => 'pg_loader_test_enum',
+ list => [ qw/foo bar baz/] }, size => 4 },
},
pre_create => [
q{