Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-09-23 14:43:38 +0300
committerGitHub <noreply@github.com>2016-09-23 14:43:38 +0300
commit6f63fd16bc6bed9b98a3583962c52522c54e8dd8 (patch)
tree0a30bc4240192568d03585276bf13b40d8b60746 /plugins/UserCountry
parentf365bfc0a815a39fc49de78162b08f53307f568e (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.php2
-rw-r--r--plugins/UserCountry/Columns/Longitude.php2
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()
{