We can now generate our own test schema
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Artist.pm
CommitLineData
11b78bd6 1package DBICTest::Schema::Artist;
a02675cd 2
3use base 'DBIx::Class::Core';
4
11b78bd6 5DBICTest::Schema::Artist->table('artist');
0009fa49 6DBICTest::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 16DBICTest::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 231;