use MooseX::Types -declare, [qw(Column Constraint ForeignKey Index PrimaryKey Procedure Schema Sequence Table Trigger View
Bit DBIHandle MatchType Parser Producer Translator DBICSchema)];
- class_type DBICSchema, { class => 'DBIx::Class::Schema' };;
+ class_type DBICSchema, { class => 'DBIx::Class::Schema' };
class_type Column, { class => 'SQL::Translator::Object::Column' };
class_type Constraint, { class => 'SQL::Translator::Object::Constraint' };
subtype Bit, as Int, where { $_ == 1 || $_ == 0 };
coerce Bit,
from Undef, via { 0 },
- from Str, via { $_ eq '1' ? 1 : 0 };
+ from Str, via { length() ? 1 : 0 };
subtype DBIHandle, as 'DBI::db';