Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / cdbi / testlib / MyStarLinkMCPK.pm
CommitLineData
8273e845 1package # hide from PAUSE
c6d74d3e 2 MyStarLinkMCPK;
ea2e61bf 3
4a233f30 4use warnings;
5use strict;
6
ea2e61bf 7use base 'MyBase';
8
9use MyStar;
10use MyFilm;
11
ea2e61bf 12# This is a many-to-many mapping table that uses the two foreign keys
13# as its own primary key - there's no extra 'auto-inc' column here
14
15__PACKAGE__->set_table();
16__PACKAGE__->columns(Primary => qw/film star/);
17__PACKAGE__->columns(All => qw/film star/);
18__PACKAGE__->has_a(film => 'MyFilm');
19__PACKAGE__->has_a(star => 'MyStar');
20
21sub create_sql {
6a3bf251 22 return qq{
ea2e61bf 23 film INTEGER NOT NULL,
24 star INTEGER NOT NULL,
25 PRIMARY KEY (film, star)
26 };
27}
28
291;
30