Skip to content

Commit

Permalink
fix: make deprecated field nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Sep 13, 2023
1 parent a3c5b31 commit a4db934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package client

import (
"database/sql"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a4db934

Please sign in to comment.