summaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_8/v77.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v1_8/v77.go')
-rw-r--r--models/migrations/v1_8/v77.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/models/migrations/v1_8/v77.go b/models/migrations/v1_8/v77.go
new file mode 100644
index 0000000..8b19993
--- /dev/null
+++ b/models/migrations/v1_8/v77.go
@@ -0,0 +1,16 @@
+// Copyright 2019 The Gitea Authors. All rights reserved.
+// SPDX-License-Identifier: MIT
+
+package v1_8 //nolint
+
+import (
+ "xorm.io/xorm"
+)
+
+func AddUserDefaultTheme(x *xorm.Engine) error {
+ type User struct {
+ Theme string `xorm:"VARCHAR(30) NOT NULL DEFAULT ''"`
+ }
+
+ return x.Sync(new(User))
+}