diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-09-23 14:43:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-23 14:43:38 +0300 |
commit | 6f63fd16bc6bed9b98a3583962c52522c54e8dd8 (patch) | |
tree | 0a30bc4240192568d03585276bf13b40d8b60746 /plugins/UserCountry | |
parent | f365bfc0a815a39fc49de78162b08f53307f568e (diff) |
Change Latitude and Longitude data types to DECIMAL instead of FLOAT (#10543)
* Change Latitude and Longitude data types to DECIMAL instead of FLOAT
* System test show that the lat/long now are stored with correct decimals
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r-- | plugins/UserCountry/Columns/Latitude.php | 2 | ||||
-rw-r--r-- | plugins/UserCountry/Columns/Longitude.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/UserCountry/Columns/Latitude.php b/plugins/UserCountry/Columns/Latitude.php index d768af53f9..4cb29bf719 100644 --- a/plugins/UserCountry/Columns/Latitude.php +++ b/plugins/UserCountry/Columns/Latitude.php @@ -18,7 +18,7 @@ use Piwik\Tracker\Action; class Latitude extends Base { protected $columnName = 'location_latitude'; - protected $columnType = 'float(10, 6) DEFAULT NULL'; + protected $columnType = 'decimal(9, 6) DEFAULT NULL'; protected function configureSegments() { diff --git a/plugins/UserCountry/Columns/Longitude.php b/plugins/UserCountry/Columns/Longitude.php index e937193dd6..d54a66ce6a 100644 --- a/plugins/UserCountry/Columns/Longitude.php +++ b/plugins/UserCountry/Columns/Longitude.php @@ -18,7 +18,7 @@ use Piwik\Tracker\Action; class Longitude extends Base { protected $columnName = 'location_longitude'; - protected $columnType = 'float(10, 6) DEFAULT NULL'; + protected $columnType = 'decimal(9, 6) DEFAULT NULL'; protected function configureSegments() { |