diff options
-rw-r--r-- | bin/send-comments | 2 | ||||
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Comment.pm | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/send-comments b/bin/send-comments index 8e263af94..df646a682 100644 --- a/bin/send-comments +++ b/bin/send-comments @@ -42,7 +42,7 @@ my $councils = FixMyStreet::App->model('DB::Open311Conf')->search( { while ( my $council = $councils->next ) { my $comments = FixMyStreet::App->model('DB::Comment')->search( { - 'me.when_sent' => undef, + 'me.whensent' => undef, 'problem.whensent' => { '!=' => undef }, 'problem.external_id' => { '!=' => undef }, 'problem.council' => { -like => '%' . $council->area_id .'%' }, diff --git a/perllib/FixMyStreet/DB/Result/Comment.pm b/perllib/FixMyStreet/DB/Result/Comment.pm index 0af24e6d5..d31bf5510 100644 --- a/perllib/FixMyStreet/DB/Result/Comment.pm +++ b/perllib/FixMyStreet/DB/Result/Comment.pm @@ -64,7 +64,7 @@ __PACKAGE__->add_columns( { data_type => "text", is_nullable => 1 }, "send_fail_timestamp", { data_type => "timestamp", is_nullable => 1 }, - "when_sent", + "whensent", { data_type => "timestamp", is_nullable => 1 }, ); __PACKAGE__->set_primary_key("id"); @@ -82,8 +82,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07017 @ 2012-03-26 13:29:28 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UDoQkVj1Gvow4fZ1yO94jA +# Created by DBIx::Class::Schema::Loader v0.07017 @ 2012-03-26 15:44:18 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nvkElEgSU6XcLd9znSqhmQ __PACKAGE__->filter_column( extra => { |