is( $f1->data_type('varchar'), 'varchar', 'Field data type is "varchar"' );
is( $f1->size('30'), '30', 'Field size is "30"' );
is( $f1->is_primary_key(0), '0', 'Field is_primary_key is negative' );
+ $person_table->add_field( $f1 );
my %extra = $f1->extra;
is( $extra{'foo'}, 'bar', 'Field extra "foo" is "bar"' );
action => $action,
}) or die $s->error;
- $t->add_database_event('insert');
-
isa_ok( $t, 'SQL::Translator::Object::Trigger', 'Trigger' );
isa_ok( $t->schema, 'SQL::Translator::Object::Schema', 'Schema' );
is( $t->schema->name, 'TrigTest', qq[Schema name is "'TrigTest'"] );