Merge 'DBIx-Class-current' into 'reorganize_tests'
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Artist.pm
CommitLineData
c6d74d3e 1package # hide from PAUSE
2 DBICTest::Schema::Artist;
a02675cd 3
4use base 'DBIx::Class::Core';
5
80021def 6__PACKAGE__->load_components('PK::Auto');
333cce60 7
11b78bd6 8DBICTest::Schema::Artist->table('artist');
0009fa49 9DBICTest::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 },
19);
11b78bd6 20DBICTest::Schema::Artist->set_primary_key('artistid');
a02675cd 21
90e6de6c 22__PACKAGE__->mk_classdata('field_name_for', {
23 artistid => 'primary key',
24 name => 'artist name',
25});
26
a02675cd 271;