Added lat and long to customers and organisations

This commit is contained in:
Tom Bloor 2017-09-21 17:01:10 +01:00
parent ad51891f51
commit a810795ca5
2 changed files with 24 additions and 0 deletions

View file

@ -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");

View file

@ -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');