From afdc7bd15881cb9038193e68ad99b7828fc0bafe Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Mon, 21 Nov 2022 01:45:19 +1000 Subject: [PATCH] use jsonb file types --- setup-postgres.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup-postgres.sh b/setup-postgres.sh index 1c7278e..5dbbd7a 100755 --- a/setup-postgres.sh +++ b/setup-postgres.sh @@ -15,9 +15,9 @@ pg_ctl start -l $LOG_PATH -o "-c listen_addresses= -c unix_socket_directories=$P psql $PGDATABASE << EOF CREATE TABLE routes ( \ creatorName text, - dustPoints float[], - checkPoints float[], - startLocation float, - endLocation float, + dustPoints jsonb[], + checkPoints jsonb[], + startLocation jsonb, + endLocation jsonb, createDate text );