Migrate serializer:gob fields to serializer:json (#1855)

This commit is contained in:
Viktor Liu
2024-04-18 18:14:21 +02:00
committed by GitHub
parent e3b76448f3
commit 77488ad11a
6 changed files with 290 additions and 4 deletions

View File

@@ -68,11 +68,11 @@ type Route struct {
ID string `gorm:"primaryKey"`
// AccountID is a reference to Account that this object belongs
AccountID string `gorm:"index"`
Network netip.Prefix `gorm:"serializer:gob"`
Network netip.Prefix `gorm:"serializer:json"`
NetID string
Description string
Peer string
PeerGroups []string `gorm:"serializer:gob"`
PeerGroups []string `gorm:"serializer:json"`
NetworkType NetworkType
Masquerade bool
Metric int