Update to hide modules from the PAUSE Indexer.
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Tag.pm
index 242d723..4fdf230 100644 (file)
@@ -1,13 +1,23 @@
-package DBICTest::Tag;
+package # hide from PAUSE 
+    DBICTest::Schema::Tag;
 
 use base qw/DBIx::Class::Core/;
 
-DBICTest::Tag->table('tags');
-DBICTest::Tag->add_columns(qw/tagid cd tag/);
-DBICTest::Tag->set_primary_key('tagid');
-DBICTest::Tag->add_relationship(
-    cd => 'DBICTest::CD',
-    { 'foreign.cdid' => 'self.cd' }
+__PACKAGE__->load_components('PK::Auto');
+
+DBICTest::Schema::Tag->table('tags');
+DBICTest::Schema::Tag->add_columns(
+  'tagid' => {
+    data_type => 'integer',
+    is_auto_increment => 1,
+  },
+  'cd' => {
+    data_type => 'integer',
+  },
+  'tag' => {
+    data_type => 'varchar'
+  },
 );
+DBICTest::Schema::Tag->set_primary_key('tagid');
 
 1;