X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FNoPrimaryKey.pm;h=ea4da6bb69f091f7f837f90d763967e3cf69a46d;hb=6e22e629bb00f5c721a6fbec0017596c1e28dde3;hp=1723390201966d34d5100c7c9b06bb821edcce35;hpb=89034887963b728f979ec9185350061a827db7af;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/NoPrimaryKey.pm b/t/lib/DBICTest/Schema/NoPrimaryKey.pm index 1723390..ea4da6b 100644 --- a/t/lib/DBICTest/Schema/NoPrimaryKey.pm +++ b/t/lib/DBICTest/Schema/NoPrimaryKey.pm @@ -1,15 +1,18 @@ -package # hide from PAUSE +package # hide from PAUSE DBICTest::Schema::NoPrimaryKey; -use base 'DBIx::Class::Core'; +use warnings; +use strict; -DBICTest::Schema::NoPrimaryKey->table('noprimarykey'); -DBICTest::Schema::NoPrimaryKey->add_columns( +use base qw/DBICTest::BaseResult/; + +__PACKAGE__->table('noprimarykey'); +__PACKAGE__->add_columns( 'foo' => { data_type => 'integer' }, 'bar' => { data_type => 'integer' }, 'baz' => { data_type => 'integer' }, ); -DBICTest::Schema::NoPrimaryKey->add_unique_constraint(foo_bar => [ qw/foo bar/ ]); +__PACKAGE__->add_unique_constraint(foo_bar => [ qw/foo bar/ ]); 1;