mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-30 19:22:08 +00:00
20 lines
428 B
Go
20 lines
428 B
Go
|
// 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{})
|
||
|
}
|