Skip to content

Commit 2c973b5

Browse files
committed
Revert c30fed3
1 parent dbdf19f commit 2c973b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/migration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function mixinMigration(PostgreSQL) {
394394
var self = this;
395395
var modelDef = this.getModelDefinition(model);
396396
var prop = modelDef.properties[propName];
397-
if (prop.generated) {
397+
if (prop.id && prop.generated) {
398398
return 'SERIAL';
399399
}
400400
var result = self.columnDataType(model, propName);

0 commit comments

Comments
 (0)