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:
parent
a76db3e95f
commit
1b7baf6fc9
File diff suppressed because it is too large
Load Diff
@ -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:"-"`
|
||||
|
@ -1 +1 @@
|
||||
2.3.4
|
||||
2.3.5
|
Loading…
Reference in New Issue
Block a user