Merge pull request #68 from glesage/feature/fix-default-type

Changed default type mapping
This commit is contained in:
Raymond Feng 2015-01-15 14:04:14 -08:00
commit adc9684ae6
1 changed files with 4 additions and 4 deletions

View File

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