From f64e226703bd594c413d211fb2918d685cfd47cd Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Thu, 2 Apr 2020 21:28:45 +0200 Subject: [PATCH] MariaDB JSON fix --- core/Driver/SQL/MySQL.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Driver/SQL/MySQL.class.php b/core/Driver/SQL/MySQL.class.php index 47b0f05..a7e3831 100644 --- a/core/Driver/SQL/MySQL.class.php +++ b/core/Driver/SQL/MySQL.class.php @@ -329,7 +329,7 @@ class MySQL extends SQL { } else if($column instanceof BoolColumn) { $type = "BOOLEAN"; } else if($column instanceof JsonColumn) { - $type = "JSON"; + $type = "LONGTEXT"; # some maria db setups don't allow JSON hereā€¦ } else { $this->lastError = "Unsupported Column Type: " . get_class($column); return NULL;