mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 00:21:16 +00:00
[raffle] Fix index initialization in MySQL v8
which didn't work as `string` is a `LONGTEXT` field which cannot fully be indexed while MariaDB does not have those issues. Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
49b40f5175
commit
6a0c48488b
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ type (
|
||||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||||
RaffleID uint64 `gorm:"uniqueIndex:user_per_raffle" json:"-"`
|
RaffleID uint64 `gorm:"uniqueIndex:user_per_raffle" json:"-"`
|
||||||
|
|
||||||
UserID string `gorm:"uniqueIndex:user_per_raffle" json:"userID"`
|
UserID string `gorm:"size:128;uniqueIndex:user_per_raffle" json:"userID"`
|
||||||
UserLogin string `json:"userLogin"`
|
UserLogin string `json:"userLogin"`
|
||||||
UserDisplayName string `json:"userDisplayName"`
|
UserDisplayName string `json:"userDisplayName"`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue