From 3ca7bcab3437e7f7a0be29a6de884ce3d6fb62d1 Mon Sep 17 00:00:00 2001 From: Daniel Czosnek Date: Wed, 18 Oct 2023 20:54:46 +0200 Subject: [PATCH] wip --- .github/workflows/migrate.yml | 2 +- migrations/V11__add_function_for_storing_user_details.sql | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/migrate.yml b/.github/workflows/migrate.yml index eed6a05..f31b36e 100644 --- a/.github/workflows/migrate.yml +++ b/.github/workflows/migrate.yml @@ -3,7 +3,7 @@ name: 'Migrate database schema' on: push: branches: - - main + - fix_migrations paths: - 'migrations/**' diff --git a/migrations/V11__add_function_for_storing_user_details.sql b/migrations/V11__add_function_for_storing_user_details.sql index a1763b9..21b03d1 100644 --- a/migrations/V11__add_function_for_storing_user_details.sql +++ b/migrations/V11__add_function_for_storing_user_details.sql @@ -3,7 +3,8 @@ or replace function update_username_and_default_circle ( p_user_id uuid, p_username text, p_default_circle_id int -) returns void as $ $ DECLARE v_default_circle_exists boolean; +) returns void as $$ +DECLARE v_default_circle_exists boolean; BEGIN -- Update username in kpi_user table UPDATE @@ -54,4 +55,4 @@ where end; -$ $ LANGUAGE plpgsql; \ No newline at end of file +$$ LANGUAGE plpgsql; \ No newline at end of file