Skip to content

Commit

Permalink
fixed pgsql bool conversion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Sep 2, 2023
1 parent d4b1969 commit 6ab147b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/schema/pgsql/20230902172124_validator-names.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ CREATE INDEX IF NOT EXISTS "validator_names_name_idx"
ON public."validator_names" USING gin
("name" gin_trgm_ops);

ALTER TABLE public."blocks" ALTER COLUMN "orphaned" TYPE smallint USING CASE
WHEN "orphaned" THEN 1 ELSE 0
END;

-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
Expand Down

0 comments on commit 6ab147b

Please sign in to comment.