]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/Suite.pm
handle affects properly and upgrade schema
[debbugs.git] / Debbugs / DB / Result / Suite.pm
index ba9b216ce4ecf9c8048434146458de1c820a915b..671a99e9c14575591e117ad4fb401e5992f998b2 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
 
@@ -21,11 +21,13 @@ use base 'DBIx::Class::Core';
 
 =item * L<DBIx::Class::InflateColumn::DateTime>
 
+=item * L<DBIx::Class::TimeStamp>
+
 =back
 
 =cut
 
-__PACKAGE__->load_components("InflateColumn::DateTime");
+__PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
 
 =head1 TABLE: C<suite>
 
@@ -42,27 +44,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 +138,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 +169,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.07042 @ 2014-11-30 21:56:51
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3csVa5t/HsPdWr0/Nmr7WA
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration