Oops, deploy only drops tables if you tell it to..
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Artist.pm
1 package # hide from PAUSE 
2     DBICTest::Schema::Artist;
3
4 use base 'DBIx::Class::Core';
5
6 __PACKAGE__->load_components('PK::Auto');
7
8 DBICTest::Schema::Artist->table('artist');
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     size      => 100,
17     is_nullable => 1,
18   },
19 );
20 DBICTest::Schema::Artist->set_primary_key('artistid');
21
22 __PACKAGE__->mk_classdata('field_name_for', {
23     artistid    => 'primary key',
24     name        => 'artist name',
25 });
26
27 1;