From a810795ca5b92b0ab4ff1defdca1638cac5ba119 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Thu, 21 Sep 2017 17:01:10 +0100 Subject: [PATCH] Added lat and long to customers and organisations --- lib/Pear/LocalLoop/Schema/Result/Customer.pm | 12 ++++++++++++ lib/Pear/LocalLoop/Schema/Result/Organisation.pm | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/lib/Pear/LocalLoop/Schema/Result/Customer.pm b/lib/Pear/LocalLoop/Schema/Result/Customer.pm index 147f945..1cc147b 100644 --- a/lib/Pear/LocalLoop/Schema/Result/Customer.pm +++ b/lib/Pear/LocalLoop/Schema/Result/Customer.pm @@ -37,6 +37,18 @@ __PACKAGE__->add_columns( size => 16, is_nullable => 0, }, + latitude => { + data_type => 'decimal', + size => [5,2], + is_nullable => 1, + default_value => undef, + }, + longitude => { + data_type => 'decimal', + size => [5,2], + is_nullable => 1, + default_value => undef, + }, ); __PACKAGE__->set_primary_key("id"); diff --git a/lib/Pear/LocalLoop/Schema/Result/Organisation.pm b/lib/Pear/LocalLoop/Schema/Result/Organisation.pm index 9512c18..df6d4cc 100644 --- a/lib/Pear/LocalLoop/Schema/Result/Organisation.pm +++ b/lib/Pear/LocalLoop/Schema/Result/Organisation.pm @@ -58,6 +58,18 @@ __PACKAGE__->add_columns( data_type => 'integer', is_nullable => 1, }, + latitude => { + data_type => 'decimal', + size => [8,5], + is_nullable => 1, + default_value => undef, + }, + longitude => { + data_type => 'decimal', + size => [8,5], + is_nullable => 1, + default_value => undef, + }, ); __PACKAGE__->set_primary_key('id');