From 74eb53ba66187d2a69d957b2ca278051ff4380d9 Mon Sep 17 00:00:00 2001 From: Andrew Farries Date: Mon, 6 Nov 2023 08:11:19 +0000 Subject: [PATCH] Stop quoting default values --- pkg/migrations/op_create_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/migrations/op_create_table.go b/pkg/migrations/op_create_table.go index fe0e9c00a..f0a86f5fb 100644 --- a/pkg/migrations/op_create_table.go +++ b/pkg/migrations/op_create_table.go @@ -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)",