We can now generate our own test schema
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / CD.pm
index 35b8acd..8e04c16 100644 (file)
@@ -3,7 +3,21 @@ package DBICTest::Schema::CD;
 use base 'DBIx::Class::Core';
 
 DBICTest::Schema::CD->table('cd');
-DBICTest::Schema::CD->add_columns(qw/cdid artist title year/);
+DBICTest::Schema::CD->add_columns(
+  'cdid' => {
+    data_type => 'integer',
+    is_auto_increment => 1,
+  },
+  'artist' => {
+    data_type => 'integer',
+  },
+  'title' => {
+    data_type => 'varchar',
+  },
+  'year' => {
+    data_type => 'varchar',
+  },
+);
 DBICTest::Schema::CD->set_primary_key('cdid');
 DBICTest::Schema::CD->add_unique_constraint(artist_title => [ qw/artist title/ ]);