Commit | Line | Data |
c6d74d3e |
1 | package # hide from PAUSE |
2 | DBICTest::Schema::Artist; |
a02675cd |
3 | |
4 | use base 'DBIx::Class::Core'; |
5 | |
333cce60 |
6 | __PACKAGE__->load_components('PK::Auto'); |
7 | |
11b78bd6 |
8 | DBICTest::Schema::Artist->table('artist'); |
0009fa49 |
9 | DBICTest::Schema::Artist->add_columns( |
10 | 'artistid' => { |
11 | data_type => 'integer', |
12 | is_auto_increment => 1 |
13 | }, |
14 | 'name' => { |
15 | data_type => 'varchar', |
16 | is_nullable => 1, |
17 | }, |
18 | ); |
11b78bd6 |
19 | DBICTest::Schema::Artist->set_primary_key('artistid'); |
a02675cd |
20 | |
90e6de6c |
21 | __PACKAGE__->mk_classdata('field_name_for', { |
22 | artistid => 'primary key', |
23 | name => 'artist name', |
24 | }); |
25 | |
a02675cd |
26 | 1; |