use uint16 HostPort in xorm mapping

This commit is contained in:
zam 2025-04-03 15:59:56 +02:00
parent 9db8c15c6b
commit f917b38d24

View file

@ -31,7 +31,7 @@ func MigrateNormalizedFederatedURI(x *xorm.Engine) error {
ID int64 `xorm:"pk autoincr"`
HostFqdn string `xorm:"host_fqdn UNIQUE INDEX VARCHAR(255) NOT NULL"`
NodeInfo NodeInfo `xorm:"extends NOT NULL"`
HostPort string `xorm:"NOT NULL DEFAULT '443'"`
HostPort uint16 `xorm:"NOT NULL DEFAULT 443"`
HostSchema string `xorm:"NOT NULL DEFAULT 'https'"`
LatestActivity time.Time `xorm:"NOT NULL"`
Created timeutil.TimeStamp `xorm:"created"`