]> source.dussan.org Git - gitea.git/commitdiff
Fix migration for user defined themes (#5682)
authorLanre Adelowo <adelowomailbox@gmail.com>
Sat, 12 Jan 2019 19:43:47 +0000 (20:43 +0100)
committertechknowlogick <hello@techknowlogick.com>
Sat, 12 Jan 2019 19:43:47 +0000 (14:43 -0500)
models/migrations/v77.go

index 12e7456642c33c2e3c3600995e57cecc5368abd0..c564d4cf549f04115747c3a78d1c578adb635fc0 100644 (file)
@@ -10,7 +10,7 @@ import (
 
 func addUserDefaultTheme(x *xorm.Engine) error {
        type User struct {
-               Theme string `xorm:"VARCHAR(30)"`
+               Theme string `xorm:"VARCHAR(30) NOT NULL DEFAULT ''"`
        }
 
        return x.Sync2(new(User))