From 8c885000a598702a9a770b8f83294a0a1a6e3cf6 Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 9 Mar 2018 17:38:12 +0000 Subject: [PATCH] hotfix to medal schema data types --- lib/Pear/LocalLoop/Schema/Result/GlobalMedals.pm | 3 +-- lib/Pear/LocalLoop/Schema/Result/GlobalUserMedalProgress.pm | 6 ++---- lib/Pear/LocalLoop/Schema/Result/GlobalUserMedals.pm | 6 ++---- lib/Pear/LocalLoop/Schema/Result/OrgMedals.pm | 3 +-- lib/Pear/LocalLoop/Schema/Result/OrgUserMedalProgress.pm | 6 ++---- lib/Pear/LocalLoop/Schema/Result/OrgUserMedals.pm | 6 ++---- 6 files changed, 10 insertions(+), 20 deletions(-) diff --git a/lib/Pear/LocalLoop/Schema/Result/GlobalMedals.pm b/lib/Pear/LocalLoop/Schema/Result/GlobalMedals.pm index 67b6c52..04c8d06 100644 --- a/lib/Pear/LocalLoop/Schema/Result/GlobalMedals.pm +++ b/lib/Pear/LocalLoop/Schema/Result/GlobalMedals.pm @@ -14,8 +14,7 @@ __PACKAGE__->add_columns( is_nullable => 0, }, "group_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "threshold" => { diff --git a/lib/Pear/LocalLoop/Schema/Result/GlobalUserMedalProgress.pm b/lib/Pear/LocalLoop/Schema/Result/GlobalUserMedalProgress.pm index 7f70b06..7e526d2 100644 --- a/lib/Pear/LocalLoop/Schema/Result/GlobalUserMedalProgress.pm +++ b/lib/Pear/LocalLoop/Schema/Result/GlobalUserMedalProgress.pm @@ -14,13 +14,11 @@ __PACKAGE__->add_columns( is_nullable => 0, }, "entity_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "group_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "total" => { diff --git a/lib/Pear/LocalLoop/Schema/Result/GlobalUserMedals.pm b/lib/Pear/LocalLoop/Schema/Result/GlobalUserMedals.pm index d30a496..e0dc168 100644 --- a/lib/Pear/LocalLoop/Schema/Result/GlobalUserMedals.pm +++ b/lib/Pear/LocalLoop/Schema/Result/GlobalUserMedals.pm @@ -19,13 +19,11 @@ __PACKAGE__->add_columns( is_nullable => 0, }, "entity_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "group_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "points" => { diff --git a/lib/Pear/LocalLoop/Schema/Result/OrgMedals.pm b/lib/Pear/LocalLoop/Schema/Result/OrgMedals.pm index f57dc6d..4b3f9e5 100644 --- a/lib/Pear/LocalLoop/Schema/Result/OrgMedals.pm +++ b/lib/Pear/LocalLoop/Schema/Result/OrgMedals.pm @@ -14,8 +14,7 @@ __PACKAGE__->add_columns( is_nullable => 0, }, "group_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "threshold" => { diff --git a/lib/Pear/LocalLoop/Schema/Result/OrgUserMedalProgress.pm b/lib/Pear/LocalLoop/Schema/Result/OrgUserMedalProgress.pm index b032f5f..df0ff1e 100644 --- a/lib/Pear/LocalLoop/Schema/Result/OrgUserMedalProgress.pm +++ b/lib/Pear/LocalLoop/Schema/Result/OrgUserMedalProgress.pm @@ -14,13 +14,11 @@ __PACKAGE__->add_columns( is_nullable => 0, }, "entity_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "group_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "total" => { diff --git a/lib/Pear/LocalLoop/Schema/Result/OrgUserMedals.pm b/lib/Pear/LocalLoop/Schema/Result/OrgUserMedals.pm index a822a42..cd8671e 100644 --- a/lib/Pear/LocalLoop/Schema/Result/OrgUserMedals.pm +++ b/lib/Pear/LocalLoop/Schema/Result/OrgUserMedals.pm @@ -19,13 +19,11 @@ __PACKAGE__->add_columns( is_nullable => 0, }, "entity_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "group_id" => { - data_type => "varchar", - size => 255, + data_type => "integer", is_nullable => 0, }, "points" => {