summaryrefslogtreecommitdiffstats
path: root/models/migrations/v77.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v77.go')
-rw-r--r--models/migrations/v77.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/models/migrations/v77.go b/models/migrations/v77.go
new file mode 100644
index 0000000000..12e7456642
--- /dev/null
+++ b/models/migrations/v77.go
@@ -0,0 +1,17 @@
+// Copyright 2019 The Gitea Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package migrations
+
+import (
+ "github.com/go-xorm/xorm"
+)
+
+func addUserDefaultTheme(x *xorm.Engine) error {
+ type User struct {
+ Theme string `xorm:"VARCHAR(30)"`
+ }
+
+ return x.Sync2(new(User))
+}