From c6d0f441d507fbe51101625cd188892e7844df4b Mon Sep 17 00:00:00 2001 From: Alon Sabi Date: Tue, 4 Oct 2022 10:49:44 -0700 Subject: [PATCH] Minor update to install on a brand new server When you run the script for the first time on a PostgreSQL server that does not have the functions, it fails when trying to drop the `hashids.decode_hex` function. --- hashids.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashids.sql b/hashids.sql index 5e34d57..1449fa6 100644 --- a/hashids.sql +++ b/hashids.sql @@ -401,7 +401,7 @@ begin end; $$ language plpgsql; -drop function hashids.decode_hex; +drop function if exists hashids.decode_hex; create or replace function hashids.decode_hex( id varchar,