mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-15 20:40:52 +09:00
16 lines
371 B
Go
16 lines
371 B
Go
// Copyright 2019 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package v1_10
|
|
|
|
import "gitea.dev/models/db"
|
|
|
|
func AddEmailNotificationEnabledToUser(x db.EngineMigration) error {
|
|
// User see models/user.go
|
|
type User struct {
|
|
EmailNotificationsPreference string `xorm:"VARCHAR(20) NOT NULL DEFAULT 'enabled'"`
|
|
}
|
|
|
|
return x.Sync(new(User))
|
|
}
|