Commit | Line | Data |
c6d74d3e |
1 | package # hide from PAUSE |
2 | DBICTest::Schema::Artist; |
a02675cd |
3 | |
4 | use base 'DBIx::Class::Core'; |
5 | |
93cec8c3 |
6 | __PACKAGE__->load_components('Positioned','PK::Auto'); |
333cce60 |
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', |
cb561d1a |
16 | size => 100, |
0009fa49 |
17 | is_nullable => 1, |
18 | }, |
93cec8c3 |
19 | position => { |
20 | data_type => 'integer', |
21 | }, |
0009fa49 |
22 | ); |
11b78bd6 |
23 | DBICTest::Schema::Artist->set_primary_key('artistid'); |
93cec8c3 |
24 | __PACKAGE__->position_column('position'); |
a02675cd |
25 | |
90e6de6c |
26 | __PACKAGE__->mk_classdata('field_name_for', { |
27 | artistid => 'primary key', |
28 | name => 'artist name', |
93cec8c3 |
29 | position => 'list position', |
90e6de6c |
30 | }); |
31 | |
a02675cd |
32 | 1; |