1// Copyright 2019 The Gitea Authors. All rights reserved. 2// Use of this source code is governed by a MIT-style 3// license that can be found in the LICENSE file. 4 5package migrations 6 7import ( 8 "xorm.io/xorm" 9) 10 11func addUserDefaultTheme(x *xorm.Engine) error { 12 type User struct { 13 Theme string `xorm:"VARCHAR(30) NOT NULL DEFAULT ''"` 14 } 15 16 return x.Sync2(new(User)) 17} 18