]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/Suite.pm
update result classes for new relationships
[debbugs.git] / Debbugs / DB / Result / Suite.pm
index ba9b216ce4ecf9c8048434146458de1c820a915b..3723aca8e736c0d4e13f3e8b068b6b01ef21b0c9 100644 (file)
@@ -6,7 +6,7 @@ package Debbugs::DB::Result::Suite;
 
 =head1 NAME
 
-Debbugs::DB::Result::Suite
+Debbugs::DB::Result::Suite - Debian Release Suite (stable, testing, etc.)
 
 =cut
 
@@ -42,27 +42,37 @@ __PACKAGE__->table("suite");
   is_nullable: 0
   sequence: 'suite_id_seq'
 
+Suite id
+
 =head2 suite_name
 
   data_type: 'text'
   is_nullable: 0
 
+Suite name
+
 =head2 version
 
   data_type: 'text'
   is_nullable: 1
 
+Suite version; NULL if there is no appropriate version
+
 =head2 codename
 
   data_type: 'text'
   is_nullable: 1
 
+Suite codename
+
 =head2 active
 
   data_type: 'boolean'
   default_value: true
   is_nullable: 1
 
+TRUE if the suite is still accepting uploads
+
 =cut
 
 __PACKAGE__->add_columns(
@@ -126,6 +136,21 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
+=head2 bug_status_caches
+
+Type: has_many
+
+Related object: L<Debbugs::DB::Result::BugStatusCache>
+
+=cut
+
+__PACKAGE__->has_many(
+  "bug_status_caches",
+  "Debbugs::DB::Result::BugStatusCache",
+  { "foreign.suite" => "self.id" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
 =head2 src_associations
 
 Type: has_many
@@ -142,8 +167,8 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-25 00:09:07
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XTRTAvkuZCBlDB6tSQXDDQ
+# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 15:46:42
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wp8D70L0WeBbMqWkFEZEyQ
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration