mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8422 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org> Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			660 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			660 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2022 The Gitea Authors. All rights reserved.
 | 
						|
// SPDX-License-Identifier: MIT
 | 
						|
 | 
						|
package v1_18
 | 
						|
 | 
						|
import (
 | 
						|
	"forgejo.org/modules/timeutil"
 | 
						|
 | 
						|
	"xorm.io/xorm"
 | 
						|
)
 | 
						|
 | 
						|
type SystemSetting struct {
 | 
						|
	ID           int64              `xorm:"pk autoincr"`
 | 
						|
	SettingKey   string             `xorm:"varchar(255) unique"` // ensure key is always lowercase
 | 
						|
	SettingValue string             `xorm:"text"`
 | 
						|
	Version      int                `xorm:"version"` // prevent to override
 | 
						|
	Created      timeutil.TimeStamp `xorm:"created"`
 | 
						|
	Updated      timeutil.TimeStamp `xorm:"updated"`
 | 
						|
}
 | 
						|
 | 
						|
func CreateSystemSettingsTable(x *xorm.Engine) error {
 | 
						|
	return x.Sync(new(SystemSetting))
 | 
						|
}
 |