Compare commits

...

2 commits

Author SHA1 Message Date
bd24838ae6
prepare release v0.3.0 2024-03-24 13:45:38 +01:00
052c335cb2
Reduce field storage size by passing max length
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-24 13:45:20 +01:00
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
# 0.3.0 / 2024-03-24
* Reduce field storage size by passing max length
# 0.2.0 / 2024-03-24
* Switch to properly tested database interface

View file

@ -2,13 +2,13 @@ package database
type (
StreakMeta struct {
Name string `gorm:"primaryKey"`
Value string
Name string `gorm:"primaryKey;size:128"`
Value string `gorm:"size:128"`
}
StreakUser struct {
TwitchID uint64 `gorm:"primaryKey"`
Username string
Username string `gorm:"size:128"`
StreamsCount uint64
CurrentStreak uint64
MaxStreak uint64