diff --git a/lib/mysql.js b/lib/mysql.js index 17cbabe..928bab3 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -1036,10 +1036,6 @@ function datatype(p) { var dt = ''; switch (p.type.name) { default: - case 'String': - dt = columnType(p, 'VARCHAR'); - dt = stringOptionsByType(p, dt); - break; case 'JSON': case 'Object': case 'Any': @@ -1047,6 +1043,10 @@ function datatype(p) { dt = columnType(p, 'TEXT'); dt = stringOptionsByType(p, dt); break; + case 'String': + dt = columnType(p, 'VARCHAR'); + dt = stringOptionsByType(p, dt); + break; case 'Number': dt = columnType(p, 'INT'); dt = numericOptionsByType(p, dt);