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

You need to sign in or sign up before continuing.
Commit 8cc6a936 by Kevin Martin

Fixed a typo in PG Query Generator ENUM update

1 parent 884a93ed
Showing with 4 additions and 4 deletions
......@@ -86,7 +86,7 @@ module.exports = (function() {
attrStr.push(addQuotes(attr) + " " + dataType)
if (attributes[attr].type.match(/^ENUM\(/)) {
query = "CREATE TYPE " + Utils.escape("enum_" + tableName + "_" + attr) + " AS " + attributes[attr].type "; " + query
query = "CREATE TYPE " + Utils.escape("enum_" + tableName + "_" + attr) + " AS " + attributes[attr].type + "; " + query
}
}
......@@ -136,7 +136,7 @@ module.exports = (function() {
}))
if (definition.type.match(/^ENUM\(/)) {
query = "CREATE TYPE " + Utils.escape("enum_" + tableName + "_" + attrName) + " AS " + definition.type "; " + query
query = "CREATE TYPE " + Utils.escape("enum_" + tableName + "_" + attrName) + " AS " + definition.type + "; " + query
}
}
......@@ -177,7 +177,7 @@ module.exports = (function() {
sql.push(attrSql)
if (definition.type.match(/^ENUM\(/)) {
query = "CREATE TYPE " + Utils.escape("enum_" + tableName + "_" + attributeName) + " AS " + definition.type "; " + query
query = "CREATE TYPE " + Utils.escape("enum_" + tableName + "_" + attributeName) + " AS " + definition.type + "; " + query
}
}
......@@ -195,7 +195,7 @@ module.exports = (function() {
}))
if (attributes[attributeName].type.match(/^ENUM\(/)) {
query = "CREATE TYPE " + Utils.escape("enum_" + tableName + "_" + attributeName) + " AS " + attributes[attributeName].type "; " + query
query = "CREATE TYPE " + Utils.escape("enum_" + tableName + "_" + attributeName) + " AS " + attributes[attributeName].type + "; " + query
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!