MariaDB JSON fix

This commit is contained in:
Roman Hergenreder 2020-04-02 21:28:45 +02:00
parent e8478b2394
commit f64e226703

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