不要怂,就是干,撸起袖子干!

Commit a36ae666 by Daniel Schwartz

removing if not exists

1 parent 4956080f
Showing with 1 additions and 1 deletions
...@@ -61,7 +61,7 @@ module.exports = (function() { ...@@ -61,7 +61,7 @@ module.exports = (function() {
primaryKeys[tableName] = [] primaryKeys[tableName] = []
tables[tableName] = {} tables[tableName] = {}
var query = "CREATE TABLE IF NOT EXISTS <%= table %> (<%= attributes%>)" var query = "CREATE TABLE <%= table %> (<%= attributes%>)"
, attrStr = Utils._.map(attributes, function(dataType, attr) { , attrStr = Utils._.map(attributes, function(dataType, attr) {
dataType = pgDataTypeMapping(tableName, attr, dataType) dataType = pgDataTypeMapping(tableName, attr, dataType)
return addQuotes(attr) + " " + dataType return addQuotes(attr) + " " + dataType
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!