Merge 'DBIx-Class-current' into 'trunk'
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Artist.pm
index 66d15b5..90eb7bf 100644 (file)
@@ -4,14 +4,15 @@ package # hide from PAUSE
 use base 'DBIx::Class::Core';
 
 __PACKAGE__->table('artist');
+__PACKAGE__->source_info({
+    "source_info_key_A" => "source_info_value_A",
+    "source_info_key_B" => "source_info_value_B",
+    "source_info_key_C" => "source_info_value_C",
+});
 __PACKAGE__->add_columns(
   'artistid' => {
     data_type => 'integer',
-    is_auto_increment => 1
-  },
-  'agent' => {
-    data_type   => 'integer',
-    is_nullable => 1,
+    is_auto_increment => 1,
   },
   'name' => {
     data_type => 'varchar',
@@ -23,7 +24,6 @@ __PACKAGE__->set_primary_key('artistid');
 
 __PACKAGE__->mk_classdata('field_name_for', {
     artistid    => 'primary key',
-    agent       => 'agent',
     name        => 'artist name',
 });
 
@@ -32,8 +32,6 @@ __PACKAGE__->has_many(
     { order_by => 'year' },
 );
 
-__PACKAGE__->belongs_to( agent => 'DBICTest::Schema::Agent' );
-
 __PACKAGE__->has_many( twokeys => 'DBICTest::Schema::TwoKeys' );
 __PACKAGE__->has_many( onekeys => 'DBICTest::Schema::OneKey' );