Parser correct; test includes failure, shorter query tests; new test schema for bad...
[dbsrgits/DBIx-Class.git] / t / lib / ViewDepsBad / Result / Artwork.pm
CommitLineData
51b31bbe 1package # hide from PAUSE
2 ViewDepsBad::Result::Artwork;
3
4use strict;
5use warnings;
6use base 'DBIx::Class::Core';
7
8__PACKAGE__->table('artwork');
9
10__PACKAGE__->add_columns(
11 id => { data_type => 'integer', is_auto_increment => 1 },
12 cd => { data_type => 'integer' },
13 file => { data_type => 'text' },
14);
15
16__PACKAGE__->set_primary_key('id');
17
18__PACKAGE__->belongs_to( 'cd', 'ViewDepsBad::Result::CD',
19 { "foreign.id" => "self.cd" },
20);
21
221;