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

You need to sign in or sign up before continuing.
Commit b987ae4a by Mick Hansen

reinstate accidently removed code

1 parent 59b218d0
Showing with 2 additions and 2 deletions
...@@ -250,7 +250,7 @@ module.exports = (function() { ...@@ -250,7 +250,7 @@ module.exports = (function() {
var definition = this.pgDataTypeMapping(tableName, attributeName, attributes[attributeName]); var definition = this.pgDataTypeMapping(tableName, attributeName, attributes[attributeName]);
var attrSql = ''; var attrSql = '';
/*if (definition.indexOf('NOT NULL') > 0) { if (definition.indexOf('NOT NULL') > 0) {
attrSql += Utils._.template(query)({ attrSql += Utils._.template(query)({
tableName: this.quoteTable(tableName), tableName: this.quoteTable(tableName),
query: this.quoteIdentifier(attributeName) + ' SET NOT NULL' query: this.quoteIdentifier(attributeName) + ' SET NOT NULL'
...@@ -291,7 +291,7 @@ module.exports = (function() { ...@@ -291,7 +291,7 @@ module.exports = (function() {
tableName: this.quoteTable(tableName), tableName: this.quoteTable(tableName),
query: 'ADD CONSTRAINT ' + this.quoteIdentifier(attributeName + '_unique_idx') + ' UNIQUE (' + this.quoteIdentifier(attributeName) + ')' query: 'ADD CONSTRAINT ' + this.quoteIdentifier(attributeName + '_unique_idx') + ' UNIQUE (' + this.quoteIdentifier(attributeName) + ')'
}); });
}*/ }
attrSql += Utils._.template(query)({ attrSql += Utils._.template(query)({
tableName: this.quoteTable(tableName), tableName: this.quoteTable(tableName),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!