1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-09-30 19:22:08 +00:00
forgejo/models/forgejo_migrations/v38.go

20 lines
428 B
Go
Raw Normal View History

// Copyright 2025 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: GPL-3.0-or-later
package forgejo_migrations
import (
"forgejo.org/modules/timeutil"
"xorm.io/xorm"
)
func AddResolvedUnixToAbuseReport(x *xorm.Engine) error {
type AbuseReport struct {
ID int64 `xorm:"pk autoincr"`
ResolvedUnix timeutil.TimeStamp `xorm:"DEFAULT NULL"`
}
return x.Sync(&AbuseReport{})
}