We can now generate our own test schema
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Tag.pm
index 4a3c4d2..0a303d6 100644 (file)
@@ -3,11 +3,18 @@ package DBICTest::Schema::Tag;
 use base qw/DBIx::Class::Core/;
 
 DBICTest::Schema::Tag->table('tags');
-DBICTest::Schema::Tag->add_columns(qw/tagid cd tag/);
-DBICTest::Schema::Tag->set_primary_key('tagid');
-DBICTest::Schema::Tag->add_relationship(
-    cd => 'DBICTest::Schema::CD',
-    { 'foreign.cdid' => 'self.cd' }
+DBICTest::Schema::Tag->add_columns(
+  'tagid' => {
+    data_type => 'varchar',
+    is_auto_increment => 1,
+  },
+  'cd' => {
+    data_type => 'integer',
+  },
+  'tag' => {
+    data_type => 'varchar'
+  },
 );
+DBICTest::Schema::Tag->set_primary_key('tagid');
 
 1;