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