From: Amiri Barksdale at Home Date: Mon, 29 Nov 2010 14:36:52 +0000 (-0800) Subject: Sequence must be declared. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2eb4039db3019d9ac448883bfff337a5342eae92;p=dbsrgits%2FDBIx-Class-ResultSource-MultipleTableInheritance.git Sequence must be declared. --- diff --git a/t/03cafe.t b/t/03cafe.t index 3f9a218..005289c 100644 --- a/t/03cafe.t +++ b/t/03cafe.t @@ -17,7 +17,7 @@ isa_ok($schema->source('Sumatra'), 'DBIx::Class::ResultSource::View', "My MTI cl #my $dir = "t/sql"; # tempdir(CLEANUP => 0); #$schema->create_ddl_dir( ['PostgreSQL'], 0.1, $dir ); -$schema->deploy( { add_drop_table => 1, add_drop_view => 1 } ); +#$schema->deploy( { add_drop_table => 1, add_drop_view => 1 } ); my $drink = $schema->resultset('Sumatra') ->create( { sweetness => 4, aroma => 'earthy', flavor => 'great' } ); diff --git a/t/lib/Cafe/Result/Coffee.pm b/t/lib/Cafe/Result/Coffee.pm index e85e3da..9468ddb 100644 --- a/t/lib/Cafe/Result/Coffee.pm +++ b/t/lib/Cafe/Result/Coffee.pm @@ -8,7 +8,7 @@ use aliased 'DBIx::Class::ResultSource::MultipleTableInheritance' => 'MTI'; __PACKAGE__->table_class(MTI); __PACKAGE__->table('coffee'); __PACKAGE__->add_columns( - "id", { data_type => "integer", is_auto_increment => 1, }, + "id", { data_type => "integer", is_auto_increment => 1, sequence => '_coffee_id_seq'}, "flavor", { data_type => "text", default_value => "good" }, );