diff options
author | 2022-06-16 19:39:57 +0200 | |
---|---|---|
committer | 2022-06-16 19:39:57 +0200 | |
commit | c48266c4595a7f53f0a71437ea15928612d8b710 (patch) | |
tree | 12806c1906b1ed1fc509d54e8c80926d6d4a650b | |
parent | postgres locale: fix accounts.note_raw migration (#651) (diff) | |
download | gotosocial-c48266c4595a7f53f0a71437ea15928612d8b710.tar.xz |
[bugfix] for the second accounts.note_raw migration (#653)
-rw-r--r-- | internal/db/bundb/migrations/20220511165212_add_account_raw_note_fix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/migrations/20220511165212_add_account_raw_note_fix.go b/internal/db/bundb/migrations/20220511165212_add_account_raw_note_fix.go index 816d21b73..f56ad4ff0 100644 --- a/internal/db/bundb/migrations/20220511165212_add_account_raw_note_fix.go +++ b/internal/db/bundb/migrations/20220511165212_add_account_raw_note_fix.go @@ -28,7 +28,7 @@ import ( func init() { up := func(ctx context.Context, db *bun.DB) error { _, err := db.ExecContext(ctx, "ALTER TABLE ? ADD COLUMN ? TEXT", bun.Ident("accounts"), bun.Ident("note_raw")) - if err != nil && !(strings.Contains(err.Error(), "already exists") || strings.Contains(err.Error(), "duplicate column name")) { + if err != nil && !(strings.Contains(err.Error(), "already exists") || strings.Contains(err.Error(), "duplicate column name") || strings.Contains(err.Error(), "SQLSTATE 42701")) { return err } return nil |