aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLanre Adelowo <adelowomailbox@gmail.com>2019-01-12 20:43:47 +0100
committertechknowlogick <hello@techknowlogick.com>2019-01-12 14:43:47 -0500
commit9e9d1b8f951c0c87af6bed71340b92ee22f5bb3b (patch)
tree00cfcf1d43d475551b383c94f9affcda8756b088
parent2b36bdd4902aa7ee93e15eee961d6a8a4a26e81c (diff)
downloadgitea-9e9d1b8f951c0c87af6bed71340b92ee22f5bb3b.tar.gz
gitea-9e9d1b8f951c0c87af6bed71340b92ee22f5bb3b.zip
Fix migration for user defined themes (#5682)
-rw-r--r--models/migrations/v77.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v77.go b/models/migrations/v77.go
index 12e7456642..c564d4cf54 100644
--- a/models/migrations/v77.go
+++ b/models/migrations/v77.go
@@ -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))