Update to add myself to contributors and to hide Modules from the PAUSE Indexer.
[dbsrgits/DBIx-Class.git] / t / testlib / Film.pm
CommitLineData
ea2e61bf 1package Film;
2
3BEGIN { unshift @INC, './t/testlib'; }
4use base 'DBIx::Class::Test::SQLite';
5use strict;
6
7__PACKAGE__->set_table('Movies');
8__PACKAGE__->columns('Primary', 'Title');
9__PACKAGE__->columns('Essential', qw( Title ));
10__PACKAGE__->columns('Directors', qw( Director CoDirector ));
11__PACKAGE__->columns('Other', qw( Rating NumExplodingSheep HasVomit ));
12
13sub create_sql {
14 return qq{
15 title VARCHAR(255),
16 director VARCHAR(80),
17 codirector VARCHAR(80),
18 rating CHAR(5),
19 numexplodingsheep INTEGER,
20 hasvomit CHAR(1)
21 }
22}
23
24sub create_test_film {
25 return shift->create({
26 Title => 'Bad Taste',
27 Director => 'Peter Jackson',
28 Rating => 'R',
29 NumExplodingSheep => 1,
30 });
31}
32
33package DeletingFilm;
34
35use base 'Film';
36sub DESTROY { shift->delete }
37
381;
39