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