X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FData%2FResult%2FJob.pm;h=09c85dfdd5d27383959a3a7ed2e8034253f332d1;hb=4a8747effd02a1e0f9dde86b1c81f6c26ce66f04;hp=b52ddfccf96afb29ef29d41b5eecc1e9cf9ca1f1;hpb=b2725d9d3f2603f7adfa0743862d666e21b1cd32;p=gruntmaster-data.git diff --git a/lib/Gruntmaster/Data/Result/Job.pm b/lib/Gruntmaster/Data/Result/Job.pm index b52ddfc..09c85df 100644 --- a/lib/Gruntmaster/Data/Result/Job.pm +++ b/lib/Gruntmaster/Data/Result/Job.pm @@ -85,7 +85,7 @@ __PACKAGE__->table("jobs"); =head2 results - data_type: 'json' + data_type: 'text' is_nullable: 1 =head2 source @@ -130,7 +130,7 @@ __PACKAGE__->add_columns( "result_text", { data_type => "text", is_nullable => 1 }, "results", - { data_type => "json", is_nullable => 1 }, + { data_type => "text", is_nullable => 1 }, "source", { data_type => "text", is_nullable => 0 }, "owner", @@ -202,9 +202,34 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-24 09:25:07 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mDHQWFk/K7q/nHu+Z3a0+A +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-26 15:24:46 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dnYOXMU6Or/Wh0m5A1N5UA +sub rerun { + shift->update({daemon => undef, result => -2, result_text => undef}); +} -# You can replace this text with custom code or comments, and it will be preserved on regeneration 1; + +__END__ + +=head1 METHODS + +=head2 rerun + +Reruns this job. + +=head1 AUTHOR + +Marius Gavrilescu Emarius@ieval.roE + +=head1 COPYRIGHT AND LICENSE + +Copyright (C) 2014 by Marius Gavrilescu + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself, either Perl version 5.18.1 or, +at your option, any later version of Perl 5 you may have available. + + +=cut