]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBICTest/Schema/Image.pm
test case for might_have and another minor bug fix
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBICTest / Schema / Image.pm
1 package # hide from PAUSE
2 DBICTest::Schema::Image;
3
4 use base qw/DBIx::Class::Core/;
5
6 __PACKAGE__->table('images');
7 __PACKAGE__->add_columns(
8 'id' => {
9 data_type => 'integer',
10 is_auto_increment => 1,
11 },
12 'artwork_id' => {
13 data_type => 'integer',
14 is_foreign_key => 1,
15 },
16 'name' => {
17 data_type => 'varchar',
18 size => 100,
19 },
20 'data' => {
21 data_type => 'blob',
22 is_nullable => 1,
23 },
24 );
25 __PACKAGE__->set_primary_key('id');
26 __PACKAGE__->belongs_to('artwork', 'DBICTest::Schema::Artwork', 'artwork_id');
27
28 __PACKAGE__->resultset_class( __PACKAGE__ . '::ResultSet');
29
30 package DBICTest::Schema::Image::ResultSet;
31
32 use base qw( DBIx::Class::ResultSet::RecursiveUpdate );
33
34
35 1;
This page took 0.031449 seconds and 4 git commands to generate.