added cascade_copy relationship attribute
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Artist.pm
1 package DBICTest::Schema::Artist;
2
3 use base 'DBIx::Class::Core';
4
5 __PACKAGE__->load_components('PK::Auto');
6
7 DBICTest::Schema::Artist->table('artist');
8 DBICTest::Schema::Artist->add_columns(
9   'artistid' => {
10     data_type => 'integer',
11     is_auto_increment => 1
12   },
13   'name' => {
14     data_type => 'varchar',
15     is_nullable => 1,
16   },
17 );
18 DBICTest::Schema::Artist->set_primary_key('artistid');
19
20 __PACKAGE__->mk_classdata('field_name_for', {
21     artistid    => 'primary key',
22     name        => 'artist name',
23 });
24
25 1;