From ae66617f10aa5bce01e1d62d13e497b201afa453 Mon Sep 17 00:00:00 2001 From: e-halinen <54105602+e-halinen@users.noreply.github.com> Date: Thu, 6 Jun 2024 11:58:08 +0300 Subject: [PATCH 1/2] Change terminus varchar data to text --- src/setup/createFunctions.sql | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/setup/createFunctions.sql b/src/setup/createFunctions.sql index dc64712..bec6ab5 100644 --- a/src/setup/createFunctions.sql +++ b/src/setup/createFunctions.sql @@ -285,14 +285,14 @@ DO $$ BEGIN create type jore.terminus as ( - line_id character varying(6), - stop_id character varying(6), - type character varying(6), + line_id text, + stop_id text, + type text, lat numeric(9, 6), lon numeric(9, 6), - stop_short_id character varying(6), - stop_area_id character varying(6), - terminal_id character varying(6), + stop_short_id text, + stop_area_id text, + terminal_id text, point geometry ); EXCEPTION @@ -460,14 +460,14 @@ DO $$ BEGIN create type jore.terminus_grouped as ( - lines character varying(6)[], + lines text, lat numeric(9, 6), lon numeric(9, 6), - stop_area_id character varying(6), - terminal_id character varying(6), - type character varying(6), - name_fi character varying(40), - name_se character varying(40) + stop_area_id text, + terminal_id text, + type text, + name_fi text, + name_se text ); EXCEPTION WHEN duplicate_object THEN null; From f78867c7a03498ab0dac5d7c1b34e98d785d73c2 Mon Sep 17 00:00:00 2001 From: e-halinen <54105602+e-halinen@users.noreply.github.com> Date: Thu, 6 Jun 2024 11:59:42 +0300 Subject: [PATCH 2/2] Change terminus_grouped lines data type back to array --- src/setup/createFunctions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup/createFunctions.sql b/src/setup/createFunctions.sql index bec6ab5..38fc6d1 100644 --- a/src/setup/createFunctions.sql +++ b/src/setup/createFunctions.sql @@ -460,7 +460,7 @@ DO $$ BEGIN create type jore.terminus_grouped as ( - lines text, + lines text[], lat numeric(9, 6), lon numeric(9, 6), stop_area_id text,