mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-04-28 03:54:44 +00:00
use model instead of table name
This commit is contained in:
parent
bb862b54bd
commit
0c808ecb8d
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ package migrations
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
|
@ -37,7 +38,7 @@ func init() {
|
|||
|
||||
// Remove 'updated_at' column.
|
||||
_, err = tx.NewDropColumn().
|
||||
Table("mentions").
|
||||
Model((*gtsmodel.Mention)(nil)).
|
||||
Column("updated_at").
|
||||
Exec(ctx)
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue