1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: explicitly set default value for unique columns (fix #367)

This commit is contained in:
Ferdinand Mütsch 2022-05-07 23:17:15 +02:00
parent a76db3e95f
commit 1b7baf6fc9
3 changed files with 514 additions and 520 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@ func init() {
type User struct {
ID string `json:"id" gorm:"primary_key"`
ApiKey string `json:"api_key" gorm:"unique"`
ApiKey string `json:"api_key" gorm:"unique; default:NULL"`
Email string `json:"email" gorm:"index:idx_user_email; size:255"`
Location string `json:"location"`
Password string `json:"-"`

View File

@ -1 +1 @@
2.3.4
2.3.5