From b614a380cd56371ff37fc4e36e404774f673b9bb Mon Sep 17 00:00:00 2001 From: Aurelie <42074299+Aurelieph@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:36:10 +0200 Subject: [PATCH 1/3] add is_active on circle_kpi_definition table --- migrations/V35__add_is_active_on_circle_kpi_definition.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 migrations/V35__add_is_active_on_circle_kpi_definition.sql diff --git a/migrations/V35__add_is_active_on_circle_kpi_definition.sql b/migrations/V35__add_is_active_on_circle_kpi_definition.sql new file mode 100644 index 0000000..36f31c9 --- /dev/null +++ b/migrations/V35__add_is_active_on_circle_kpi_definition.sql @@ -0,0 +1,3 @@ + +ALTER TABLE public.circle_kpi_definition +ADD is_active boolean not null default true; From 52b100b51e1fd699dcccc4d7f64941e18b88be69 Mon Sep 17 00:00:00 2001 From: Aurelie <42074299+Aurelieph@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:37:17 +0200 Subject: [PATCH 2/3] migration test --- .github/workflows/migrate.yml | 8 ++++---- .../V35__add_is_active_on_circle_kpi_definition.sql | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/migrate.yml b/.github/workflows/migrate.yml index eed6a05..9591b87 100644 --- a/.github/workflows/migrate.yml +++ b/.github/workflows/migrate.yml @@ -1,11 +1,11 @@ -name: 'Migrate database schema' +name: "Migrate database schema" on: push: branches: - - main + - update-table-circle-kpi-def paths: - - 'migrations/**' + - "migrations/**" jobs: migrate-database: @@ -26,4 +26,4 @@ jobs: -url="jdbc:postgresql://${{ env.SUPABASE_HOST }}:${{ env.SUPABASE_PORT }}/${{ env.SUPABASE_DB }}?sslmode=require" -user="${{ env.SUPABASE_USER }}" -password="${{ secrets.SUPABASE_PASS }}" - migrate \ No newline at end of file + migrate diff --git a/migrations/V35__add_is_active_on_circle_kpi_definition.sql b/migrations/V35__add_is_active_on_circle_kpi_definition.sql index 36f31c9..ef71b9a 100644 --- a/migrations/V35__add_is_active_on_circle_kpi_definition.sql +++ b/migrations/V35__add_is_active_on_circle_kpi_definition.sql @@ -1,3 +1,2 @@ - ALTER TABLE public.circle_kpi_definition ADD is_active boolean not null default true; From 2bdb91550435d2d69bea539951def7d7f3ae1608 Mon Sep 17 00:00:00 2001 From: Aurelie <42074299+Aurelieph@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:39:00 +0200 Subject: [PATCH 3/3] change back migration file --- .github/workflows/migrate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/migrate.yml b/.github/workflows/migrate.yml index 9591b87..479ca87 100644 --- a/.github/workflows/migrate.yml +++ b/.github/workflows/migrate.yml @@ -3,7 +3,7 @@ name: "Migrate database schema" on: push: branches: - - update-table-circle-kpi-def + - main paths: - "migrations/**"