From 0ae023685ede081b07ef25e14631ac6243cd1f48 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 27 Feb 2012 13:06:17 +0800 Subject: [PATCH] dbgenerate.js --- dbgenerate.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbgenerate.js b/dbgenerate.js index 0b865035c..e105408aa 100644 --- a/dbgenerate.js +++ b/dbgenerate.js @@ -300,6 +300,11 @@ tables.forEach(function(table) { //print(JSON.stringify(schema, null,4)); Seed.quit(); schema.forEach(function(e) { + + if (!e.Type) { + print(JSON.stringify(e, null,4)); Seed.quit(); + } + var type = e.Type.match(/([^(]+)\(([^\)]+)\)/); var row = { }; if (type) { -- 2.39.2