Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions EF6.PG/NpgsqlMigrationSqlGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,11 @@ void AppendColumn(ColumnModel column, StringBuilder sql)
break;
}
}
else if (column.IsNullable != null && !column.IsNullable.Value && column.ClrDefaultValue != null)
{
sql.Append(" DEFAULT ");
AppendValue(column.ClrDefaultValue, sql);
}
}

void AppendColumnType(ColumnModel column, StringBuilder sql, bool setSerial)
Expand Down