Merge 'trunk' into 'multi_stuff'
[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   /,
22   { 'DBICTest::Schema' => [qw/
23     LinerNotes
24     Artwork
25     Artwork_to_Artist
26     Image
27     Lyrics
28     LyricVersion
29     OneKey
30     #dummy
31     TwoKeys
32     Serialized
33   /]},
34   (
35     'FourKeys',
36     'FourKeys_to_TwoKeys',
37     '#dummy',
38     'SelfRef',
39     'ArtistUndirectedMap',
40     'ArtistSourceName',
41     'ArtistSubclass',
42     'Producer',
43     'CD_to_Producer',
44     'Dummy',    # this is a real result class we remove in the hook below
45   ),
46   qw/SelfRefAlias TreeLike TwoKeyTreeLike Event EventTZ NoPrimaryKey/,
47   qw/Collection CollectionObject TypedObject Owners BooksInLibrary/,
48   qw/ForceForeign Encoded/,
49 );
50
51 sub sqlt_deploy_hook {
52   my ($self, $sqlt_schema) = @_;
53
54   $sqlt_schema->drop_table('dummy');
55 }
56
57 1;