Skip to content

Commit

Permalink
storage: drop pg_trgm on wipe
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Jun 29, 2023
1 parent 992b8ef commit 0976f19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/postgres/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ func (c *Client) listNexusMaterializedViews(ctx context.Context) ([]string, erro

// Wipe removes all contents of the database.
func (c *Client) Wipe(ctx context.Context) error {
if _, err := c.pool.Exec(ctx, "DROP EXTENSION IF EXISTS pg_trgm CASCADE;"); err != nil {
return err
}

tables, err := c.listNexusTables(ctx)
if err != nil {
return err
Expand Down

0 comments on commit 0976f19

Please sign in to comment.