Skip to content

Commit

Permalink
fix: add missing pgccrypto
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 10, 2024
1 parent 2323b48 commit 695383d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/storage/driver/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@ func GetMigrator() *migrations.Migrator {
return err
},
},
migrations.Migration{
Name: "add pgcrypto",
UpWithContext: func(ctx context.Context, tx bun.Tx) error {
_, err := tx.ExecContext(ctx, `
create extension if not exists pgcrypto
with schema public;
`)
return err
},
},
)

return migrator
Expand Down

0 comments on commit 695383d

Please sign in to comment.