Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / cdbi / testlib / MyStar.pm
CommitLineData
8273e845 1package # hide from PAUSE
c6d74d3e 2 MyStar;
ea2e61bf 3
4a233f30 4use warnings;
ea2e61bf 5use strict;
6
4a233f30 7use base 'MyBase';
8
ea2e61bf 9__PACKAGE__->set_table();
10__PACKAGE__->columns(All => qw/starid name/);
11__PACKAGE__->has_many(films => [ MyStarLink => 'film' ]);
12
13# sub films { map $_->film, shift->_films }
14
15sub create_sql {
6a3bf251 16 return qq{
17 starid TINYINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
18 name VARCHAR(255)
19 };
ea2e61bf 20}
21
221;
23