]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/Suite.pm
switch to compatibility level 12
[debbugs.git] / Debbugs / DB / Result / Suite.pm
index fdfab37c69c8f0bbecc0a190cf776268498c3ae5..37c875c403b55843d1e14b31203c516b6a4e7738 100644 (file)
@@ -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>
 
@@ -44,26 +46,26 @@ __PACKAGE__->table("suite");
 
 Suite id
 
-=head2 suite_name
+=head2 codename
 
   data_type: 'text'
   is_nullable: 0
 
-Suite name
+Suite codename (sid, squeeze, etc.)
 
-=head2 version
+=head2 suite_name
 
   data_type: 'text'
   is_nullable: 1
 
-Suite version; NULL if there is no appropriate version
+Suite name (testing, stable, etc.)
 
-=head2 codename
+=head2 version
 
   data_type: 'text'
   is_nullable: 1
 
-Suite codename
+Suite version; NULL if there is no appropriate version
 
 =head2 active
 
@@ -83,11 +85,11 @@ __PACKAGE__->add_columns(
     is_nullable       => 0,
     sequence          => "suite_id_seq",
   },
-  "suite_name",
+  "codename",
   { data_type => "text", is_nullable => 0 },
-  "version",
+  "suite_name",
   { data_type => "text", is_nullable => 1 },
-  "codename",
+  "version",
   { data_type => "text", is_nullable => 1 },
   "active",
   { data_type => "boolean", default_value => \"true", is_nullable => 1 },
@@ -107,6 +109,30 @@ __PACKAGE__->set_primary_key("id");
 
 =head1 UNIQUE CONSTRAINTS
 
+=head2 C<suite_idx_codename>
+
+=over 4
+
+=item * L</codename>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint("suite_idx_codename", ["codename"]);
+
+=head2 C<suite_idx_version>
+
+=over 4
+
+=item * L</version>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint("suite_idx_version", ["version"]);
+
 =head2 C<suite_suite_name_key>
 
 =over 4
@@ -136,6 +162,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
@@ -152,8 +193,8 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1NiRLPvDC3xRPr7+fbzp/w
+# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-11-24 08:52:49
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nXoQCYZhM9cFgC1x+RY9rA
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration