X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FOneKey.pm;h=4cc2918d0f5e199a535921cba81ab70e523f8eed;hb=368a5228b107faaef1af5d09b0a25ea8bb603421;hp=095354b2a9ff92dc157e081a8f0428d982212f82;hpb=a02675cd9a11e1f354220319da9f5d573a2e484a;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/OneKey.pm b/t/lib/DBICTest/Schema/OneKey.pm index 095354b..4cc2918 100644 --- a/t/lib/DBICTest/Schema/OneKey.pm +++ b/t/lib/DBICTest/Schema/OneKey.pm @@ -1,10 +1,22 @@ -package DBICTest::OneKey; +package # hide from PAUSE + DBICTest::Schema::OneKey; use base 'DBIx::Class::Core'; -DBICTest::OneKey->table('onekey'); -DBICTest::OneKey->add_columns(qw/id artist cd/); -DBICTest::OneKey->set_primary_key('id'); +DBICTest::Schema::OneKey->table('onekey'); +DBICTest::Schema::OneKey->add_columns( + 'id' => { + data_type => 'integer', + is_auto_increment => 1, + }, + 'artist' => { + data_type => 'integer', + }, + 'cd' => { + data_type => 'integer', + }, +); +DBICTest::Schema::OneKey->set_primary_key('id'); 1;