From f7b2f8b735dd89023274195fcf4a6984a2a4937b Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Thu, 10 Jan 2019 00:04:09 +0100 Subject: [PATCH] fix migration --- models/migrations/v77.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/migrations/v77.go b/models/migrations/v77.go index 12e7456642c33..c564d4cf549f0 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))