d6d03b55a0ed6fea7ef1617ac9b0536b9b95142c
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema.pm
1 package # hide from PAUSE
2     DBICTest::Schema;
3
4 use base qw/DBIx::Class::Schema/;
5
6 no warnings qw/qw/;
7
8 __PACKAGE__->load_classes(qw/
9   Artist
10   SequenceTest
11   BindType
12   Employee
13   CD
14   FileColumn
15   Genre
16   Link
17   Bookmark
18   #dummy
19   Track
20   Tag
21   Year2000CDs
22   Year1999CDs
23   CustomSql
24   Money
25   NoViewDefinition
26   /,
27   { 'DBICTest::Schema' => [qw/
28     LinerNotes
29     Artwork
30     Artwork_to_Artist
31     Image
32     Lyrics
33     LyricVersion
34     OneKey
35     #dummy
36     TwoKeys
37     Serialized
38   /]},
39   (
40     'FourKeys',
41     'FourKeys_to_TwoKeys',
42     '#dummy',
43     'SelfRef',
44     'ArtistUndirectedMap',
45     'ArtistSourceName',
46     'ArtistSubclass',
47     'Producer',
48     'CD_to_Producer',
49     'Dummy',    # this is a real result class we remove in the hook below
50   ),
51   qw/SelfRefAlias TreeLike TwoKeyTreeLike Event EventTZ NoPrimaryKey/,
52   qw/Collection CollectionObject TypedObject Owners BooksInLibrary/,
53   qw/ForceForeign Encoded/,
54 );
55
56 sub sqlt_deploy_hook {
57   my ($self, $sqlt_schema) = @_;
58
59   $sqlt_schema->drop_table('dummy');
60 }
61
62 1;