X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FSerialized.pm;h=1de158e19e5ce553443e25b50de9cc8d87356dc4;hb=4a233f3019d2baa4bf2abee0c873c74d5cdf3a11;hp=41610dafc167ffc52d4ca99d9d61d702ab79dc21;hpb=c6d74d3ead7c87c6c63997b8e39fa638f4851559;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Serialized.pm b/t/lib/DBICTest/Schema/Serialized.pm index 41610da..1de158e 100644 --- a/t/lib/DBICTest/Schema/Serialized.pm +++ b/t/lib/DBICTest/Schema/Serialized.pm @@ -1,13 +1,16 @@ -package # hide from PAUSE +package # hide from PAUSE DBICTest::Schema::Serialized; -use base 'DBIx::Class::Core'; +use warnings; +use strict; -DBICTest::Schema::Serialized->table('serialized'); -DBICTest::Schema::Serialized->add_columns( - 'id' => { data_type => 'integer' }, +use base qw/DBICTest::BaseResult/; + +__PACKAGE__->table('serialized'); +__PACKAGE__->add_columns( + 'id' => { data_type => 'integer', is_auto_increment => 1 }, 'serialized' => { data_type => 'text' }, ); -DBICTest::Schema::Serialized->set_primary_key('id'); +__PACKAGE__->set_primary_key('id'); 1;