added more many_to_many tests and changed add_to_rel to accept linking table column...
[dbsrgits/DBIx-Class-Historic.git] / t / testlib / ActorAlias.pm
1 package # hide from PAUSE \r
2     ActorAlias;\r
3 \r
4 BEGIN { unshift @INC, './t/testlib'; }\r
5 \r
6 use strict;\r
7 use warnings;\r
8 \r
9 use base 'DBIx::Class::Test::SQLite';\r
10 \r
11 __PACKAGE__->set_table( 'ActorAlias' );\r
12 \r
13 __PACKAGE__->columns( Primary => 'id' );\r
14 __PACKAGE__->columns( All     => qw/ actor alias / );\r
15 __PACKAGE__->has_a( actor => 'Actor' );\r
16 __PACKAGE__->has_a( alias => 'Actor' );\r
17 \r
18 sub create_sql {\r
19         return qq{\r
20                 id    INTEGER PRIMARY KEY,\r
21                 actor INTEGER,\r
22                 alias INTEGER\r
23         }\r
24 }\r
25 \r
26 1;\r
27 \r