using ->rows here was not a reliable thing to do
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / Agent.pm
CommitLineData
ab8481f5 1package # hide from PAUSE
2 DBICTest::Schema::Agent;
3
4use base 'DBIx::Class::Core';
5
6__PACKAGE__->table('agent');
7__PACKAGE__->add_columns(
8 'agentid' => {
9 data_type => 'integer',
10 is_auto_increment => 1
11 },
12 'label' => {
13 data_type => 'integer',
14 },
15 'name' => {
16 data_type => 'varchar',
17 size => 100,
18 is_nullable => 1,
19 },
20);
21__PACKAGE__->set_primary_key('agentid');
22
23__PACKAGE__->has_many( artists => 'DBICTest::Schema::Artist' );
24__PACKAGE__->belongs_to( label => 'DBICTest::Schema::Label' );
25
261;