X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FNoPrimaryKey.pm;fp=t%2Flib%2FDBICTest%2FSchema%2FNoPrimaryKey.pm;h=1723390201966d34d5100c7c9b06bb821edcce35;hb=89034887963b728f979ec9185350061a827db7af;hp=0000000000000000000000000000000000000000;hpb=04786a4c19fe3964002b69e8a3dbb291524e0610;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/NoPrimaryKey.pm b/t/lib/DBICTest/Schema/NoPrimaryKey.pm new file mode 100644 index 0000000..1723390 --- /dev/null +++ b/t/lib/DBICTest/Schema/NoPrimaryKey.pm @@ -0,0 +1,15 @@ +package # hide from PAUSE + DBICTest::Schema::NoPrimaryKey; + +use base 'DBIx::Class::Core'; + +DBICTest::Schema::NoPrimaryKey->table('noprimarykey'); +DBICTest::Schema::NoPrimaryKey->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/ ]); + +1;