]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/MessageRef.pm
allow specifying the dist in source_to_binary (for DB actions)
[debbugs.git] / Debbugs / DB / Result / MessageRef.pm
index b035598298ac84b7942ed485959e488098f4bbd3..98e2a2d8e41d84c042872aad224cdf7f3e9e6ac3 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<message_refs>
 
@@ -35,13 +37,6 @@ __PACKAGE__->table("message_refs");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'message_refs_id_seq'
-
 =head2 message
 
   data_type: 'integer'
@@ -77,13 +72,6 @@ TRUE if this message->ref came from In-Reply-To: or similar.
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "message_refs_id_seq",
-  },
   "message",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "refs",
@@ -94,18 +82,6 @@ __PACKAGE__->add_columns(
   { data_type => "boolean", default_value => \"false", is_nullable => 1 },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<message_refs_message_refs_idx>
@@ -155,9 +131,15 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oEOZLlhxLd5tyH5IW5KhTA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0YaAP/sB5N2Xr2rAFNK1lg
 
+sub sqlt_deploy_hook {
+    my ($self, $sqlt_table) = @_;
+    for my $idx (qw(refs message)) {
+       $sqlt_table->add_index(name => 'message_refs_idx_'.$idx,
+                              fields => [$idx]);
+    }
+}
 
-# You can replace this text with custom code or comments, and it will be preserved on regeneration
 1;