feat ProviderAts autoMigrate

This commit is contained in:
timerzz 2024-12-02 17:10:18 +08:00
parent 2e26da0a8a
commit 277d73739b

View File

@ -175,7 +175,7 @@ func (p *providerArticleApi) BatchUpdate(articles []v2.ProviderArticle) error {
}
func (p *providerArticleApi) AutoMigrate() error {
return p.db.AutoMigrate(&v2.ProviderArticle{}, &v2.ProviderPrice{})
return p.db.AutoMigrate(&v2.ProviderArticle{}, &v2.ProviderPrice{}, &v2.ProviderAts{})
}
func (p *providerArticleApi) ProviderPrice(providerArticleID uint) (history []v2.ProviderPrice, err error) {