break;
default:
- throw new Exception("Invalid data base type " + cfg.DBTYPE + " should be MySQL or PostgreSQL";
- ")
+ throw "Invalid data base type " + cfg.DBTYPE + " should be MySQL or PostgreSQL";
/*
"Field": "province",
"Type": "varchar(255)",
//print(JSON.stringify(schema, null,4)); Seed.quit();
schema.forEach(function(e) {
- e.Type = e.type;
- e.Field = e.field;
+ e.Type = e.Type || e.type;
+ e.Field = e.Field || e.field;
var type = e.Type.match(/([^(]+)\(([^\)]+)\)/);
var row = { };