Skip to content

Commit

Permalink
Stop quoting default values
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-farries committed Nov 6, 2023
1 parent a0bd02d commit 74eb53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/migrations/op_create_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func ColumnToSQL(col Column) string {
sql += " NOT NULL"
}
if col.Default != nil {
sql += fmt.Sprintf(" DEFAULT %s", pq.QuoteLiteral(*col.Default))
sql += fmt.Sprintf(" DEFAULT %s", *col.Default)
}
if col.References != nil {
sql += fmt.Sprintf(" CONSTRAINT %s REFERENCES %s(%s)",
Expand Down

0 comments on commit 74eb53b

Please sign in to comment.