🐛 Fix migration issue on pools
This commit is contained in:
@ -7,8 +7,8 @@ import (
|
||||
|
||||
var AutoMaintainRange = []any{
|
||||
&models.Account{},
|
||||
&models.Attachment{},
|
||||
&models.AttachmentPool{},
|
||||
&models.Attachment{},
|
||||
&models.StickerPack{},
|
||||
&models.Sticker{},
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ type AttachmentPool struct {
|
||||
Description string `json:"description"`
|
||||
Config datatypes.JSONType[AttachmentPoolConfig] `json:"config"`
|
||||
|
||||
Attachments []Attachment `json:"attachments"`
|
||||
Attachments []Attachment `json:"attachments" gorm:"foreignKey:PoolID"`
|
||||
|
||||
Account *Account `json:"account"`
|
||||
AccountID *uint `json:"account_id"`
|
||||
|
Reference in New Issue
Block a user