From 401367ceab58d5c1aece3e6da53249dc5292338a Mon Sep 17 00:00:00 2001 From: FranGuam Date: Mon, 27 May 2024 10:29:30 +0800 Subject: [PATCH] chore: delete aid & scholarship table --- metadata/tables.yaml | 149 ------------------ .../down.sql | 3 + .../up.sql | 1 + .../down.sql | 3 + .../up.sql | 1 + 5 files changed, 8 insertions(+), 149 deletions(-) create mode 100644 migrations/1716776522560_drop_table_public_aid_application/down.sql create mode 100644 migrations/1716776522560_drop_table_public_aid_application/up.sql create mode 100644 migrations/1716776556359_drop_table_public_scholarship_application/down.sql create mode 100644 migrations/1716776556359_drop_table_public_scholarship_application/up.sql diff --git a/metadata/tables.yaml b/metadata/tables.yaml index 3ab62b5..ef031ea 100644 --- a/metadata/tables.yaml +++ b/metadata/tables.yaml @@ -1,76 +1,3 @@ -- table: - name: aid_application - schema: public - object_relationships: - - name: user - using: - foreign_key_constraint_on: student_uuid - insert_permissions: - - role: counselor - permission: - check: {} - columns: - - aid - - amount - - code - - created_at - - form_url - - id - - status - - student_id - - student_uuid - - thank_letter - - updated_at - select_permissions: - - role: counselor - permission: - columns: - - aid - - amount - - code - - created_at - - form_url - - id - - status - - student_id - - student_uuid - - thank_letter - - updated_at - filter: {} - - role: student - permission: - columns: - - aid - - amount - - code - - created_at - - form_url - - id - - status - - student_id - - student_uuid - - thank_letter - - updated_at - filter: - student_uuid: - _eq: X-Hasura-User-Id - update_permissions: - - role: student - permission: - columns: - - form_url - - thank_letter - filter: - student_uuid: - _eq: X-Hasura-User-Id - check: - student_uuid: - _eq: X-Hasura-User-Id - delete_permissions: - - role: counselor - permission: - backend_only: false - filter: {} - table: name: contest schema: public @@ -4022,82 +3949,6 @@ permission: backend_only: false filter: {} -- table: - name: scholarship_application - schema: public - object_relationships: - - name: student_byuuid - using: - foreign_key_constraint_on: student_uuid - insert_permissions: - - role: counselor - permission: - check: {} - columns: - - id - - created_at - - updated_at - - scholarship - - amount - - status - - student_id - - thank_letter - - code - - honor - - form_url - - student_uuid - select_permissions: - - role: counselor - permission: - columns: - - amount - - code - - form_url - - honor - - scholarship - - status - - student_id - - thank_letter - - created_at - - updated_at - - id - - student_uuid - filter: {} - - role: student - permission: - columns: - - amount - - code - - created_at - - form_url - - honor - - id - - scholarship - - status - - student_id - - student_uuid - - thank_letter - - updated_at - filter: - student_uuid: - _eq: X-Hasura-User-Id - update_permissions: - - role: student - permission: - columns: - - form_url - - thank_letter - filter: - student_uuid: - _eq: X-Hasura-User-Id - check: - student_uuid: - _eq: X-Hasura-User-Id - delete_permissions: - - role: counselor - permission: - backend_only: false - filter: {} - table: name: scholarships_aids schema: public diff --git a/migrations/1716776522560_drop_table_public_aid_application/down.sql b/migrations/1716776522560_drop_table_public_aid_application/down.sql new file mode 100644 index 0000000..2ed303f --- /dev/null +++ b/migrations/1716776522560_drop_table_public_aid_application/down.sql @@ -0,0 +1,3 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- DROP table "public"."aid_application"; diff --git a/migrations/1716776522560_drop_table_public_aid_application/up.sql b/migrations/1716776522560_drop_table_public_aid_application/up.sql new file mode 100644 index 0000000..eb46b96 --- /dev/null +++ b/migrations/1716776522560_drop_table_public_aid_application/up.sql @@ -0,0 +1 @@ +DROP table "public"."aid_application"; diff --git a/migrations/1716776556359_drop_table_public_scholarship_application/down.sql b/migrations/1716776556359_drop_table_public_scholarship_application/down.sql new file mode 100644 index 0000000..3beb500 --- /dev/null +++ b/migrations/1716776556359_drop_table_public_scholarship_application/down.sql @@ -0,0 +1,3 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- DROP table "public"."scholarship_application"; diff --git a/migrations/1716776556359_drop_table_public_scholarship_application/up.sql b/migrations/1716776556359_drop_table_public_scholarship_application/up.sql new file mode 100644 index 0000000..c8a9683 --- /dev/null +++ b/migrations/1716776556359_drop_table_public_scholarship_application/up.sql @@ -0,0 +1 @@ +DROP table "public"."scholarship_application";