X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema.pm;h=1b436f6336d83a6f8cdad558a2628911f56bd2cd;hb=10be570e51ef741ead5f0e8d5ceca78499a8965c;hp=e3329a762eb6f3dc05095f5e7b98390753497969;hpb=219dd7c7cc546f9929991e62f072e682b2abd5dc;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema.pm b/t/lib/DBICTest/Schema.pm index e3329a7..1b436f6 100644 --- a/t/lib/DBICTest/Schema.pm +++ b/t/lib/DBICTest/Schema.pm @@ -1,24 +1,42 @@ package # hide from PAUSE DBICTest::Schema; -use base qw/DBIx::Class::Schema/; +# load early so that `perl -It/lib -MDBICTest::Schema` keeps working +use ANFANG; -no warnings qw/qw/; +use strict; +use warnings; +no warnings 'qw'; + +use base 'DBICTest::BaseSchema'; + +__PACKAGE__->mk_group_accessors(simple => 'custom_attr'); __PACKAGE__->load_classes(qw/ Artist SequenceTest + BindType Employee CD - FileColumn - Link + Genre Bookmark + Link #dummy Track Tag + Year2000CDs + Year1999CDs + CustomSql + Money + TimestampPrimaryKey /, { 'DBICTest::Schema' => [qw/ LinerNotes + Artwork + Artwork_to_Artist + Image + Lyrics + LyricVersion OneKey #dummy TwoKeys @@ -34,17 +52,17 @@ __PACKAGE__->load_classes(qw/ 'ArtistSubclass', 'Producer', 'CD_to_Producer', + 'Dummy', # this is a real result class we remove in the hook below ), - qw/SelfRefAlias TreeLike TwoKeyTreeLike Event EventTZ NoPrimaryKey/, - qw/Collection CollectionObject TypedObject/, - qw/Owners BooksInLibrary/, - qw/ForceForeign/ + qw/SelfRefAlias TreeLike TwoKeyTreeLike Event NoPrimaryKey/, + qw/Collection CollectionObject TypedObject Owners BooksInLibrary/, + qw/ForceForeign Encoded/, ); sub sqlt_deploy_hook { my ($self, $sqlt_schema) = @_; - $sqlt_schema->drop_table('link'); + $sqlt_schema->drop_table('dummy'); } 1;