]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/BugMessage.pm
fix mistake in bug_message indexes
[debbugs.git] / Debbugs / DB / Result / BugMessage.pm
index d30b445d978c9847428a875cd7151ae3412a2bcb..d5587da87f8dbb1317e66bd85eaa38833a13043c 100644 (file)
@@ -35,6 +35,13 @@ __PACKAGE__->table("bug_message");
 
 =head1 ACCESSORS
 
+=head2 id
+
+  data_type: 'integer'
+  is_auto_increment: 1
+  is_nullable: 0
+  sequence: 'bug_message_id_seq'
+
 =head2 bug
 
   data_type: 'integer'
@@ -75,6 +82,13 @@ Time offset was valid
 =cut
 
 __PACKAGE__->add_columns(
+  "id",
+  {
+    data_type         => "integer",
+    is_auto_increment => 1,
+    is_nullable       => 0,
+    sequence          => "bug_message_id_seq",
+  },
   "bug",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "message",
@@ -87,6 +101,34 @@ __PACKAGE__->add_columns(
   { data_type => "timestamp with time zone", is_nullable => 1 },
 );
 
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("id");
+
+=head1 UNIQUE CONSTRAINTS
+
+=head2 C<bug_message_bug_message_idx>
+
+=over 4
+
+=item * L</bug>
+
+=item * L</message>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint("bug_message_bug_message_idx", ["bug", "message"]);
+
 =head1 RELATIONS
 
 =head2 bug
@@ -101,7 +143,7 @@ __PACKAGE__->belongs_to(
   "bug",
   "Debbugs::DB::Result::Bug",
   { id => "bug" },
-  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+  { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
 );
 
 =head2 message
@@ -116,12 +158,12 @@ __PACKAGE__->belongs_to(
   "message",
   "Debbugs::DB::Result::Message",
   { id => "message" },
-  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+  { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WkrYUE1iE8o3fFkzQSkzeQ
+# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-24 20:30:07
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:j9PbT+q4tBJhimXl7TQgLg
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration