Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 19:26:09 +01:00

breaking struct adjustment

This commit is contained in:
Clemens 2024-01-12 17:49:07 +01:00 committed by Michael Jerger
parent 1f989f2ecd
commit 7d30d14c76
2 changed files with 1 additions and 2 deletions

View file

@ -13,7 +13,7 @@ import (
type FederationInfo struct { type FederationInfo struct {
ID int64 `xorm:"pk autoincr"` ID int64 `xorm:"pk autoincr"`
HostFqdn string `xorm:"host_fqdn UNIQUE INDEX VARCHAR(255) NOT NULL"` HostFqdn string `xorm:"host_fqdn UNIQUE INDEX VARCHAR(255) NOT NULL"`
NodeInfo NodeInfo `xorm:"NOT NULL"` NodeInfo NodeInfo `xorm:"extends NOT NULL"`
LatestActivity timeutil.TimeStamp `xorm:"NOT NULL"` LatestActivity timeutil.TimeStamp `xorm:"NOT NULL"`
Create timeutil.TimeStamp `xorm:"created"` Create timeutil.TimeStamp `xorm:"created"`
Updated timeutil.TimeStamp `xorm:"updated"` Updated timeutil.TimeStamp `xorm:"updated"`

View file

@ -97,7 +97,6 @@ func (id ActorID) AsWellKnownNodeInfoUri() string {
// NodeInfo data type // NodeInfo data type
// swagger:model // swagger:model
type NodeInfo struct { type NodeInfo struct {
ID int64 `xorm:"pk autoincr"`
Source SourceType Source SourceType
} }