summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/db/bundb/migrations/20220214175650_media_cleanup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/migrations/20220214175650_media_cleanup.go b/internal/db/bundb/migrations/20220214175650_media_cleanup.go
index 427f3bb9e..c7734e6e7 100644
--- a/internal/db/bundb/migrations/20220214175650_media_cleanup.go
+++ b/internal/db/bundb/migrations/20220214175650_media_cleanup.go
@@ -142,7 +142,7 @@ func init() {
}
// rename the new table to the same name as the old table was
- if _, err := tx.QueryContext(ctx, "ALTER TABLE new_media_attachments RENAME TO media_attachments;"); err != nil {
+ if _, err := tx.ExecContext(ctx, "ALTER TABLE new_media_attachments RENAME TO media_attachments;"); err != nil {
return err
}