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