From a4db934e2fefb9cdb4075a8d739b5127e7257ec9 Mon Sep 17 00:00:00 2001 From: zepatrik Date: Wed, 13 Sep 2023 13:56:54 +0200 Subject: [PATCH] fix: make deprecated field nullable --- client/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 547cddc636a..79cbe6a6ceb 100644 --- a/client/client.go +++ b/client/client.go @@ -4,6 +4,7 @@ package client import ( + "database/sql" "strconv" "strings" "time" @@ -43,7 +44,7 @@ type Client struct { // DEPRECATED: This field is deprecated and will be removed. It serves // no purpose except the database not complaining. - PK string `json:"-" db:"pk"` + PK sql.NullString `json:"-" db:"pk"` // DEPRECATED: This field is deprecated and will be removed. It serves // no purpose except the database not complaining.