Merge pull request #68 from glesage/feature/fix-default-type
Changed default type mapping
This commit is contained in:
commit
adc9684ae6
|
@ -1036,10 +1036,6 @@ function datatype(p) {
|
||||||
var dt = '';
|
var dt = '';
|
||||||
switch (p.type.name) {
|
switch (p.type.name) {
|
||||||
default:
|
default:
|
||||||
case 'String':
|
|
||||||
dt = columnType(p, 'VARCHAR');
|
|
||||||
dt = stringOptionsByType(p, dt);
|
|
||||||
break;
|
|
||||||
case 'JSON':
|
case 'JSON':
|
||||||
case 'Object':
|
case 'Object':
|
||||||
case 'Any':
|
case 'Any':
|
||||||
|
@ -1047,6 +1043,10 @@ function datatype(p) {
|
||||||
dt = columnType(p, 'TEXT');
|
dt = columnType(p, 'TEXT');
|
||||||
dt = stringOptionsByType(p, dt);
|
dt = stringOptionsByType(p, dt);
|
||||||
break;
|
break;
|
||||||
|
case 'String':
|
||||||
|
dt = columnType(p, 'VARCHAR');
|
||||||
|
dt = stringOptionsByType(p, dt);
|
||||||
|
break;
|
||||||
case 'Number':
|
case 'Number':
|
||||||
dt = columnType(p, 'INT');
|
dt = columnType(p, 'INT');
|
||||||
dt = numericOptionsByType(p, dt);
|
dt = numericOptionsByType(p, dt);
|
||||||
|
|
Loading…
Reference in New Issue