summaryrefslogtreecommitdiff
path: root/internal/db/bundb/migrations
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-11-14 13:43:27 +0100
committerLibravatar GitHub <noreply@github.com>2023-11-14 12:43:27 +0000
commit0b99f14d64d5d372824c4d7602543610f5c006a1 (patch)
tree953e9e12fb312184b85dda88e278075ac260dc9f /internal/db/bundb/migrations
parent[feature/performance] Wrap incoming HTTP requests in timeout handler (#2353) (diff)
downloadgotosocial-0b99f14d64d5d372824c4d7602543610f5c006a1.tar.xz
[bugfix] Update poll delete/update db queries (#2361)
Diffstat (limited to 'internal/db/bundb/migrations')
-rw-r--r--internal/db/bundb/migrations/20231110142330_small_poll_table_tweaks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/migrations/20231110142330_small_poll_table_tweaks.go b/internal/db/bundb/migrations/20231110142330_small_poll_table_tweaks.go
index c9f2b3d0f..dad943efa 100644
--- a/internal/db/bundb/migrations/20231110142330_small_poll_table_tweaks.go
+++ b/internal/db/bundb/migrations/20231110142330_small_poll_table_tweaks.go
@@ -44,7 +44,7 @@ func init() {
Table("polls").
Column("expires_at_new").
Set("? = ?", bun.Ident("expires_at_new"), bun.Ident("expires_at")).
- Where("1"). // bun gets angry performing update over all rows
+ Where("TRUE"). // bun gets angry performing update over all rows
Exec(ctx); err != nil {
return err
}