Extend proxy rel attr
[dbsrgits/DBIx-Class.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
823c91a1 14 FileColumn
370f2ba2 15 Genre
9c2c91ea 16 Bookmark
97c96475 17 Link
5ce32fc1 18 #dummy
19 Track
20 Tag
a648ec78 21 Year2000CDs
1ee9aa72 22 Year1999CDs
b8b55c8e 23 CustomSql
818ec409 24 Money
4d4dc518 25 TimestampPrimaryKey
5ce32fc1 26 /,
27 { 'DBICTest::Schema' => [qw/
28 LinerNotes
4f6386b0 29 Artwork
d5633096 30 Artwork_to_Artist
4f6386b0 31 Image
32 Lyrics
33 LyricVersion
5ce32fc1 34 OneKey
35 #dummy
36 TwoKeys
9fcda149 37 Serialized
5ce32fc1 38 /]},
39 (
40 'FourKeys',
3bd6e3e0 41 'FourKeys_to_TwoKeys',
5ce32fc1 42 '#dummy',
43 'SelfRef',
5efe4c79 44 'ArtistUndirectedMap',
bab77431 45 'ArtistSourceName',
b1fb2c94 46 'ArtistSubclass',
7411204b 47 'Producer',
48 'CD_to_Producer',
181c0934 49 'Dummy', # this is a real result class we remove in the hook below
5ce32fc1 50 ),
dda9af55 51 qw/SelfRefAlias TreeLike TwoKeyTreeLike Event EventTZ NoPrimaryKey/,
a7e65bb5 52 qw/Collection CollectionObject TypedObject Owners BooksInLibrary/,
6e6b37a7 53 qw/ForceForeign Encoded/,
5ce32fc1 54);
a02675cd 55
d6c79cb3 56sub sqlt_deploy_hook {
57 my ($self, $sqlt_schema) = @_;
58
458e0292 59 $sqlt_schema->drop_table('dummy');
d6c79cb3 60}
61
a02675cd 621;