mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-02 16:29:06 +01:00
76c7df9630
(cherry picked from commit66afddd511
) (cherry picked from commit19da0dee9d
) (cherry picked from commit0b725af693
) (cherry picked from commit64d4de2b66
) (cherry picked from commit05bc9d3b7f
) (cherry picked from commit5958553066
) (cherry picked from commitc4f77e26c9
) (cherry picked from commit3034832c66
) (cherry picked from commitd48931ec5b
) (cherry picked from commitb1e0d53c28
) (cherry picked from commite3de35fe15
) (cherry picked from commit3b2712c3d6
) (cherry picked from commit00c6940851
) (cherry picked from commitac56c7a202
) (cherry picked from commitd957fb66de
) (cherry picked from commit01e9125f1b
) (cherry picked from commit71675caecb
) (cherry picked from commit0313d02e50
) (cherry picked from commitd2952769c1
) (cherry picked from commit63d080cdcf
) (cherry picked from commit43ced29b28
) (cherry picked from commite556074abd
) (cherry picked from commit165409d8ff
) (cherry picked from commit0a3f370162
)
21 lines
532 B
Go
21 lines
532 B
Go
// Copyright 2023 The Forgejo Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package forgejo_v1_20 //nolint:revive
|
|
|
|
import (
|
|
"code.gitea.io/gitea/modules/timeutil"
|
|
|
|
"xorm.io/xorm"
|
|
)
|
|
|
|
func AddForgejoBlockedUser(x *xorm.Engine) error {
|
|
type ForgejoBlockedUser struct {
|
|
ID int64 `xorm:"pk autoincr"`
|
|
BlockID int64 `xorm:"index"`
|
|
UserID int64 `xorm:"index"`
|
|
CreatedUnix timeutil.TimeStamp `xorm:"created"`
|
|
}
|
|
|
|
return x.Sync(new(ForgejoBlockedUser))
|
|
}
|