mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-10 05:48:08 -06:00
[chore] Log during potentially long migrations (#3613)
* [chore] Log during potentially long migrations * remove unneeded log lines
This commit is contained in:
parent
d9e722dea3
commit
acdd495c70
4 changed files with 11 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ import (
|
|||
"reflect"
|
||||
|
||||
gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20241113152126_add_status_edits"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
|
@ -38,6 +39,7 @@ func init() {
|
|||
}
|
||||
|
||||
// Add EditIDs column to Status table.
|
||||
log.Info(ctx, "adding edits column to statuses table...")
|
||||
_, err = tx.NewAddColumn().
|
||||
Model((*gtsmodel.Status)(nil)).
|
||||
ColumnExpr(colDef).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue