This repository has been archived by the owner on Nov 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
328 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package DDGC::DB::Result::InstantAnswer::Updates; | ||
# ABSTRACT: DuckDuckHack Instant Answer Page | ||
|
||
use Moose; | ||
use MooseX::NonMoose; | ||
extends 'DDGC::DB::Base::Result'; | ||
use DBIx::Class::Candy; | ||
use DateTime::Format::Human::Duration; | ||
use namespace::autoclean; | ||
|
||
table 'instant_answer_updates'; | ||
|
||
sub u { [ 'InstantAnswer', 'update', $_[0]->id, $_[0]->instant_answer_id ] } | ||
|
||
# f_key to ia table | ||
column instant_answer_id => { | ||
data_type => 'text' | ||
}; | ||
|
||
column field => { | ||
data_type => 'text', | ||
}; | ||
|
||
column value => { | ||
data_type => 'text', | ||
}; | ||
|
||
column timestamp => { | ||
data_type => 'text' | ||
}; | ||
|
||
belongs_to 'instant_answer', 'DDGC::DB::Result::InstantAnswer', 'instant_answer_id', {on_delete => 'cascade'}; | ||
|
||
no Moose; | ||
__PACKAGE__->meta->make_immutable; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package DDGC::DB::ResultSet::InstantAnswer::Updates; | ||
# ABSTRACT: Resultset class for Instant Answer Updates | ||
|
||
use Moose; | ||
extends 'DDGC::DB::Base::ResultSet'; | ||
use namespace::autoclean; | ||
|
||
1; | ||
|
Oops, something went wrong.