From 6a17be7b14400ddec060f72621c8b12e611083ee Mon Sep 17 00:00:00 2001 From: Alexandra Nantel Date: Thu, 31 May 2018 13:29:55 -0400 Subject: [PATCH] Set neigborhood default null in createTable --- extension.meta.xml | 2 +- fields/field.addresslocation.php | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/extension.meta.xml b/extension.meta.xml index f382780..2e308b4 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -1,6 +1,6 @@ - Address Location Field + Field: Address Location Geocode an address, then refine the latlng returned for precision. https://github.com/designermonkey/addresslocationfield http://getsymphony.com/discuss/thread/70238/ diff --git a/fields/field.addresslocation.php b/fields/field.addresslocation.php index e7308a8..83d2b0e 100755 --- a/fields/field.addresslocation.php +++ b/fields/field.addresslocation.php @@ -275,8 +275,14 @@ public function createTable() 'type' => 'double', 'null' => true, ], - 'neighborhood' => 'varchar(255)', - 'neighborhood_handle' => 'varchar(255)', + 'neighborhood' => [ + 'type' => 'varchar(255)', + 'null' => true, + ], + 'neighborhood_handle' => [ + 'type' => 'varchar(255)', + 'null' => true, + ], 'result_data' => 'blob', ]) ->keys([