From 4d748d74ac0ce65a856a96cf3e564d2586e83631 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Mon, 18 Sep 2023 16:09:48 +0545 Subject: [PATCH] chore: use postgres 14.1 for github action --- .github/workflows/test.yaml | 3 +-- schema/notifications.hcl | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cc36db7e..1615a78a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -48,10 +48,9 @@ jobs: uses: actions/checkout@v3 - name: Apply new migrations run: ${{ env.migrate_command }} - services: postgres: - image: postgres:15 + image: postgres:14.1 ports: - 5432:5432 env: diff --git a/schema/notifications.hcl b/schema/notifications.hcl index b6f3818b..946fe388 100644 --- a/schema/notifications.hcl +++ b/schema/notifications.hcl @@ -131,8 +131,8 @@ table "notification_send_history" { foreign_key "notification_id_fkey" { columns = [column.notification_id] ref_columns = [table.notifications.column.id] - on_update = NO_ACTION - on_delete = NO_ACTION + on_update = CASCADE + on_delete = CASCADE } foreign_key "notification_recipient_person_id_fkey" { columns = [column.person_id]