From 75b44563e0da6ece19ee539aa7786895d69ab6a8 Mon Sep 17 00:00:00 2001 From: chenziyi Date: Sat, 17 Aug 2024 17:03:21 +0800 Subject: [PATCH] fix: set nullable --- metadata/tables.yaml | 5 ----- .../down.sql | 1 - .../up.sql | 1 - .../down.sql | 1 - .../up.sql | 1 - .../down.sql | 1 - .../up.sql | 1 - .../down.sql | 1 - .../up.sql | 1 - .../down.sql | 1 - .../up.sql | 1 - 11 files changed, 15 deletions(-) delete mode 100644 migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/down.sql delete mode 100644 migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/up.sql delete mode 100644 migrations/1723881817713_alter_table_public_mentor_info_alter_column_available/down.sql delete mode 100644 migrations/1723881817713_alter_table_public_mentor_info_alter_column_available/up.sql delete mode 100644 migrations/1723881829180_alter_table_public_mentor_info_alter_column_max_applicants/down.sql delete mode 100644 migrations/1723881829180_alter_table_public_mentor_info_alter_column_max_applicants/up.sql delete mode 100644 migrations/1723881929640_alter_table_public_mentor_available_alter_column_max_applicant/down.sql delete mode 100644 migrations/1723881929640_alter_table_public_mentor_available_alter_column_max_applicant/up.sql delete mode 100644 migrations/1723881945772_alter_table_public_mentor_application_alter_column_year/down.sql delete mode 100644 migrations/1723881945772_alter_table_public_mentor_application_alter_column_year/up.sql diff --git a/metadata/tables.yaml b/metadata/tables.yaml index 23fc28c..e50030e 100644 --- a/metadata/tables.yaml +++ b/metadata/tables.yaml @@ -3250,7 +3250,6 @@ _eq: X-Hasura-User-Id columns: - available - - max_applicant - mentor_uuid select_permissions: - role: counselor @@ -3258,7 +3257,6 @@ columns: - available - created_at - - max_applicant - mentor_uuid - updated_at filter: {} @@ -3267,7 +3265,6 @@ columns: - available - created_at - - max_applicant - mentor_uuid - updated_at filter: {} @@ -3276,7 +3273,6 @@ columns: - available - created_at - - max_applicant - mentor_uuid - updated_at filter: @@ -3287,7 +3283,6 @@ permission: columns: - available - - max_applicant filter: mentor_uuid: _eq: X-Hasura-User-Id diff --git a/migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/down.sql b/migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/down.sql deleted file mode 100644 index 5e11f6c..0000000 --- a/migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_application" alter column "year" drop not null; diff --git a/migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/up.sql b/migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/up.sql deleted file mode 100644 index 163faf2..0000000 --- a/migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_application" alter column "year" set not null; diff --git a/migrations/1723881817713_alter_table_public_mentor_info_alter_column_available/down.sql b/migrations/1723881817713_alter_table_public_mentor_info_alter_column_available/down.sql deleted file mode 100644 index efdc3f5..0000000 --- a/migrations/1723881817713_alter_table_public_mentor_info_alter_column_available/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_info" alter column "available" set not null; diff --git a/migrations/1723881817713_alter_table_public_mentor_info_alter_column_available/up.sql b/migrations/1723881817713_alter_table_public_mentor_info_alter_column_available/up.sql deleted file mode 100644 index 92b66a6..0000000 --- a/migrations/1723881817713_alter_table_public_mentor_info_alter_column_available/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_info" alter column "available" drop not null; diff --git a/migrations/1723881829180_alter_table_public_mentor_info_alter_column_max_applicants/down.sql b/migrations/1723881829180_alter_table_public_mentor_info_alter_column_max_applicants/down.sql deleted file mode 100644 index c0cfaae..0000000 --- a/migrations/1723881829180_alter_table_public_mentor_info_alter_column_max_applicants/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_info" alter column "max_applicants" set not null; diff --git a/migrations/1723881829180_alter_table_public_mentor_info_alter_column_max_applicants/up.sql b/migrations/1723881829180_alter_table_public_mentor_info_alter_column_max_applicants/up.sql deleted file mode 100644 index 97a0e8e..0000000 --- a/migrations/1723881829180_alter_table_public_mentor_info_alter_column_max_applicants/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_info" alter column "max_applicants" drop not null; diff --git a/migrations/1723881929640_alter_table_public_mentor_available_alter_column_max_applicant/down.sql b/migrations/1723881929640_alter_table_public_mentor_available_alter_column_max_applicant/down.sql deleted file mode 100644 index ddfac35..0000000 --- a/migrations/1723881929640_alter_table_public_mentor_available_alter_column_max_applicant/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_available" alter column "max_applicant" set not null; diff --git a/migrations/1723881929640_alter_table_public_mentor_available_alter_column_max_applicant/up.sql b/migrations/1723881929640_alter_table_public_mentor_available_alter_column_max_applicant/up.sql deleted file mode 100644 index 641926d..0000000 --- a/migrations/1723881929640_alter_table_public_mentor_available_alter_column_max_applicant/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_available" alter column "max_applicant" drop not null; diff --git a/migrations/1723881945772_alter_table_public_mentor_application_alter_column_year/down.sql b/migrations/1723881945772_alter_table_public_mentor_application_alter_column_year/down.sql deleted file mode 100644 index 163faf2..0000000 --- a/migrations/1723881945772_alter_table_public_mentor_application_alter_column_year/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_application" alter column "year" set not null; diff --git a/migrations/1723881945772_alter_table_public_mentor_application_alter_column_year/up.sql b/migrations/1723881945772_alter_table_public_mentor_application_alter_column_year/up.sql deleted file mode 100644 index 5e11f6c..0000000 --- a/migrations/1723881945772_alter_table_public_mentor_application_alter_column_year/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."mentor_application" alter column "year" drop not null;