Fix an obscure regression when inserting an object with a serialize-deflating column set
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / Year1999CDs.pm
CommitLineData
a1e6f9a5 1package # hide from PAUSE
2 DBICTest::Schema::Year1999CDs;
3## Used in 104view.t
4
660cf1be 5use base qw/DBICTest::BaseResult/;
a1e6f9a5 6
7__PACKAGE__->table_class('DBIx::Class::ResultSource::View');
8
9__PACKAGE__->table('year1999cds');
10__PACKAGE__->result_source_instance->is_virtual(1);
11__PACKAGE__->result_source_instance->view_definition(
12 "SELECT cdid, artist, title FROM cd WHERE year ='1999'"
13);
14__PACKAGE__->add_columns(
15 'cdid' => {
16 data_type => 'integer',
17 is_auto_increment => 1,
18 },
19 'artist' => {
20 data_type => 'integer',
21 },
22 'title' => {
23 data_type => 'varchar',
24 size => 100,
25 },
26
27);
28__PACKAGE__->set_primary_key('cdid');
29__PACKAGE__->add_unique_constraint([ qw/artist title/ ]);
30
311;