Add automatic naming of unique constraints
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / OneKey.pm
index 72d8de3..4cc2918 100644 (file)
@@ -1,9 +1,21 @@
-package DBICTest::Schema::OneKey;
+package # hide from PAUSE 
+    DBICTest::Schema::OneKey;
 
 use base 'DBIx::Class::Core';
 
 DBICTest::Schema::OneKey->table('onekey');
-DBICTest::Schema::OneKey->add_columns(qw/id artist cd/);
+DBICTest::Schema::OneKey->add_columns(
+  'id' => {
+    data_type => 'integer',
+    is_auto_increment => 1,
+  },
+  'artist' => {
+    data_type => 'integer',
+  },
+  'cd' => {
+    data_type => 'integer',
+  },
+);
 DBICTest::Schema::OneKey->set_primary_key('id');