]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/BugBinpackage.pm
add binpkg/srcpkg relation table
[debbugs.git] / Debbugs / DB / Result / BugBinpackage.pm
index 869ce26d81913c16b05a4903fa3bf176adf55a93..68a1137fa3ac16b9fb1169585d16f22f7f458ec6 100644 (file)
@@ -64,6 +64,20 @@ __PACKAGE__->add_columns(
 
 =head1 UNIQUE CONSTRAINTS
 
+=head2 C<bug_binpackage_bin_pkg_bug_idx>
+
+=over 4
+
+=item * L</bin_pkg>
+
+=item * L</bug>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint("bug_binpackage_bin_pkg_bug_idx", ["bin_pkg", "bug"]);
+
 =head2 C<bug_binpackage_id_pkg>
 
 =over 4
@@ -111,9 +125,15 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wL+pwSCfWe/mMQOjziKSeg
+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2019-01-01 17:29:32
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gEYqmJfiJJtRYFzIYut3Fg
+
 
+sub sqlt_deploy_hook {
+    my ($self, $sqlt_table) = @_;
+    $sqlt_table->add_index(name => 'bug_binpackage_bin_pkg_idx',
+                          fields => [qw(bin_pkg)],
+                         );
+}
 
-# You can replace this text with custom code or comments, and it will be preserved on regeneration
 1;