Introduce GOVERNANCE document and empty RESOLUTIONS file.
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / NoPrimaryKey.pm
index 1723390..ea4da6b 100644 (file)
@@ -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;