Commit | Line | Data |
11b78bd6 |
1 | package DBICTest::Schema::CD; |
a02675cd |
2 | |
3 | use base 'DBIx::Class::Core'; |
4 | |
11b78bd6 |
5 | DBICTest::Schema::CD->table('cd'); |
0009fa49 |
6 | DBICTest::Schema::CD->add_columns( |
7 | 'cdid' => { |
8 | data_type => 'integer', |
9 | is_auto_increment => 1, |
10 | }, |
11 | 'artist' => { |
12 | data_type => 'integer', |
13 | }, |
14 | 'title' => { |
15 | data_type => 'varchar', |
16 | }, |
17 | 'year' => { |
18 | data_type => 'varchar', |
19 | }, |
20 | ); |
11b78bd6 |
21 | DBICTest::Schema::CD->set_primary_key('cdid'); |
87f0da6a |
22 | DBICTest::Schema::CD->add_unique_constraint(artist_title => [ qw/artist title/ ]); |
a02675cd |
23 | |
24 | 1; |