diff options
author | 2024-07-23 23:06:20 +0200 | |
---|---|---|
committer | 2024-07-23 23:06:20 +0200 | |
commit | 6533531cf1c8e2e8f3e5a2ba232564b0af3f2fe5 (patch) | |
tree | 2ca35a26742100adc0374d98baa767322f934f63 /internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go | |
parent | Remove content and related fields from boosts (#3131) (diff) | |
download | gotosocial-6533531cf1c8e2e8f3e5a2ba232564b0af3f2fe5.tar.xz |
[chore] Add some log lines to recent migrations warning not to interrupt (#3134)
* [chore] Add some log lines to recent migrations warning not to interrupt
* arse
Diffstat (limited to 'internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go')
-rw-r--r-- | internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go b/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go index 5f01f53ef..9bf948bed 100644 --- a/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go +++ b/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements.go @@ -22,12 +22,18 @@ import ( old_gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/bundb/migrations/20240715204203_media_pipeline_improvements" new_gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/uptrace/bun" ) func init() { up := func(ctx context.Context, db *bun.DB) error { + log.Info( + ctx, + "doing media pipeline improvements; "+ + "this may take a while if your database has lots of media attachments, don't interrupt it!", + ) if err := db.RunInTx(ctx, nil, func(ctx context.Context, tx bun.Tx) error { if _, err := tx.NewAddColumn(). Table("media_attachments"). |