Add tests for virtual view
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema.pm
CommitLineData
bab77431 1package # hide from PAUSE
c6d74d3e 2 DBICTest::Schema;
a02675cd 3
4use base qw/DBIx::Class::Schema/;
5
5ce32fc1 6no warnings qw/qw/;
7
a02675cd 8__PACKAGE__->load_classes(qw/
5ce32fc1 9 Artist
b829910c 10 SequenceTest
6ec7d1bb 11 BindType
4e298a80 12 Employee
5ce32fc1 13 CD
4740bdb7 14 FileColumn
370f2ba2 15 Genre
9c2c91ea 16 Link
17 Bookmark
5ce32fc1 18 #dummy
19 Track
20 Tag
a648ec78 21 Year2000CDs
1ee9aa72 22 Year1999CDs
5ce32fc1 23 /,
24 { 'DBICTest::Schema' => [qw/
25 LinerNotes
4f6386b0 26 Artwork
27 Image
28 Lyrics
29 LyricVersion
5ce32fc1 30 OneKey
31 #dummy
32 TwoKeys
9fcda149 33 Serialized
5ce32fc1 34 /]},
35 (
36 'FourKeys',
3bd6e3e0 37 'FourKeys_to_TwoKeys',
5ce32fc1 38 '#dummy',
39 'SelfRef',
5efe4c79 40 'ArtistUndirectedMap',
bab77431 41 'ArtistSourceName',
b1fb2c94 42 'ArtistSubclass',
7411204b 43 'Producer',
44 'CD_to_Producer',
181c0934 45 'Dummy', # this is a real result class we remove in the hook below
5ce32fc1 46 ),
dda9af55 47 qw/SelfRefAlias TreeLike TwoKeyTreeLike Event EventTZ NoPrimaryKey/,
a7e65bb5 48 qw/Collection CollectionObject TypedObject Owners BooksInLibrary/,
0e80c4ca 49 qw/ForceForeign Encoded/,
5ce32fc1 50);
a02675cd 51
d6c79cb3 52sub sqlt_deploy_hook {
53 my ($self, $sqlt_schema) = @_;
54
458e0292 55 $sqlt_schema->drop_table('dummy');
d6c79cb3 56}
57
a02675cd 581;