X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-DBIx-Class-ResultSet-RecursiveUpdate;a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FNoPrimaryKey.pm;fp=t%2Flib%2FDBICTest%2FSchema%2FNoPrimaryKey.pm;h=1edda6167c803f3ed0314b4ca87f8088c6fd6678;hp=0000000000000000000000000000000000000000;hb=584713f437ffa9390821a0580ed368aa22fb552e;hpb=d93b1239cb7de482ac79a091d7daa67115596306 diff --git a/t/lib/DBICTest/Schema/NoPrimaryKey.pm b/t/lib/DBICTest/Schema/NoPrimaryKey.pm new file mode 100644 index 0000000..1edda61 --- /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'; + +__PACKAGE__->table('noprimarykey'); +__PACKAGE__->add_columns( + 'foo' => { data_type => 'integer' }, + 'bar' => { data_type => 'integer' }, + 'baz' => { data_type => 'integer' }, +); + +__PACKAGE__->add_unique_constraint(foo_bar => [ qw/foo bar/ ]); + +1;