code.gitea.io/gitea@v1.21.7/models/migrations/v1_10/v93.go (about) 1 // Copyright 2019 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package v1_10 //nolint 5 6 import "xorm.io/xorm" 7 8 func AddEmailNotificationEnabledToUser(x *xorm.Engine) error { 9 // User see models/user.go 10 type User struct { 11 EmailNotificationsPreference string `xorm:"VARCHAR(20) NOT NULL DEFAULT 'enabled'"` 12 } 13 14 return x.Sync(new(User)) 15 }