X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FTrack.pm;h=496680035532f40105187337b8901f84ec895ed8;hb=6c99a3eea0da8f254e67fdda21e27f9ef9fbeec3;hp=ffbd2fd23f1b8d818fd054d4675b8754ef37778b;hpb=4f6386b03a5e179c64240c8ab7b3bbec8a2004e1;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest/Schema/Track.pm b/t/lib/DBICTest/Schema/Track.pm index ffbd2fd..4966800 100644 --- a/t/lib/DBICTest/Schema/Track.pm +++ b/t/lib/DBICTest/Schema/Track.pm @@ -1,8 +1,8 @@ package # hide from PAUSE DBICTest::Schema::Track; -use base 'DBIx::Class::Core'; -__PACKAGE__->load_components(qw/InflateColumn::DateTime/); +use base qw/DBICTest::BaseResult/; +__PACKAGE__->load_components(qw/InflateColumn::DateTime Ordered/); __PACKAGE__->table('track'); __PACKAGE__->add_columns( @@ -26,12 +26,20 @@ __PACKAGE__->add_columns( accessor => 'updated_date', is_nullable => 1 }, + last_updated_at => { + data_type => 'datetime', + is_nullable => 1 + }, ); __PACKAGE__->set_primary_key('trackid'); __PACKAGE__->add_unique_constraint([ qw/cd position/ ]); __PACKAGE__->add_unique_constraint([ qw/cd title/ ]); +__PACKAGE__->position_column ('position'); +__PACKAGE__->grouping_column ('cd'); + + __PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD' ); __PACKAGE__->belongs_to( disc => 'DBICTest::Schema::CD' => 'cd');