@@ -137,6 +137,11 @@ class MysqlSchema extends BaseSchema
'unsigned' => $unsigned
];
}
+
+ if (strpos($col, 'json') !== false) {
+ return ['type' => 'json', 'length' => null];
+ }
return ['type' => 'text', 'length' => null];
@@ -146,6 +146,10 @@ class MysqlSchemaTest extends TestCase
'DOUBLE(10,4) UNSIGNED',
['type' => 'float', 'length' => 10, 'precision' => 4, 'unsigned' => true]
],
+ [
+ 'JSON',
+ ['type' => 'json', 'length' => null]
+ ],