Merge 'trunk' into 'DBIx-Class-current'
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / CD.pm
CommitLineData
11b78bd6 1package DBICTest::Schema::CD;
a02675cd 2
3use base 'DBIx::Class::Core';
4
333cce60 5__PACKAGE__->load_components('PK::Auto');
6
11b78bd6 7DBICTest::Schema::CD->table('cd');
0009fa49 8DBICTest::Schema::CD->add_columns(
9 'cdid' => {
10 data_type => 'integer',
11 is_auto_increment => 1,
12 },
13 'artist' => {
14 data_type => 'integer',
15 },
16 'title' => {
17 data_type => 'varchar',
18 },
19 'year' => {
20 data_type => 'varchar',
21 },
22);
11b78bd6 23DBICTest::Schema::CD->set_primary_key('cdid');
87f0da6a 24DBICTest::Schema::CD->add_unique_constraint(artist_title => [ qw/artist title/ ]);
a02675cd 25
261;