forked from eesast/hasura
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: delete aid & scholarship table (eesast#181)
* chore: delete aid & scholarship table * chore: remove id fields for all tables
- Loading branch information
Showing
31 changed files
with
95 additions
and
232 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
migrations/1716776522560_drop_table_public_aid_application/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
1 change: 1 addition & 0 deletions
1
migrations/1716776522560_drop_table_public_aid_application/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP table "public"."aid_application"; |
3 changes: 3 additions & 0 deletions
3
migrations/1716776556359_drop_table_public_scholarship_application/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
1 change: 1 addition & 0 deletions
1
migrations/1716776556359_drop_table_public_scholarship_application/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP table "public"."scholarship_application"; |
1 change: 1 addition & 0 deletions
1
...ons/1716781029624_alter_table_public_honor_application_alter_column_student_uuid/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."honor_application" alter column "student_uuid" drop not null; |
1 change: 1 addition & 0 deletions
1
...tions/1716781029624_alter_table_public_honor_application_alter_column_student_uuid/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."honor_application" alter column "student_uuid" set not null; |
2 changes: 2 additions & 0 deletions
2
...ations/1716781165593_alter_table_public_honor_application_drop_column_student_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."honor_application" alter column "student_id" drop not null; | ||
alter table "public"."honor_application" add column "student_id" text; |
1 change: 1 addition & 0 deletions
1
migrations/1716781165593_alter_table_public_honor_application_drop_column_student_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."honor_application" drop column "student_id" cascade; |
1 change: 1 addition & 0 deletions
1
...ons/1716781441705_alter_table_public_mentor_application_alter_column_mentor_uuid/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_application" alter column "mentor_uuid" drop not null; |
1 change: 1 addition & 0 deletions
1
...tions/1716781441705_alter_table_public_mentor_application_alter_column_mentor_uuid/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_application" alter column "mentor_uuid" set not null; |
1 change: 1 addition & 0 deletions
1
...ns/1716781456647_alter_table_public_mentor_application_alter_column_student_uuid/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_application" alter column "student_uuid" drop not null; |
1 change: 1 addition & 0 deletions
1
...ions/1716781456647_alter_table_public_mentor_application_alter_column_student_uuid/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_application" alter column "student_uuid" set not null; |
2 changes: 2 additions & 0 deletions
2
...ations/1716781593880_alter_table_public_mentor_application_drop_column_mentor_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."mentor_application" alter column "mentor_id" drop not null; | ||
alter table "public"."mentor_application" add column "mentor_id" text; |
1 change: 1 addition & 0 deletions
1
migrations/1716781593880_alter_table_public_mentor_application_drop_column_mentor_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_application" drop column "mentor_id" cascade; |
2 changes: 2 additions & 0 deletions
2
...tions/1716781613783_alter_table_public_mentor_application_drop_column_student_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."mentor_application" alter column "student_id" drop not null; | ||
alter table "public"."mentor_application" add column "student_id" text; |
1 change: 1 addition & 0 deletions
1
migrations/1716781613783_alter_table_public_mentor_application_drop_column_student_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_application" drop column "student_id" cascade; |
2 changes: 2 additions & 0 deletions
2
migrations/1716781905611_alter_table_public_mentor_available_drop_column_mentor_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."mentor_available" alter column "mentor_id" drop not null; | ||
alter table "public"."mentor_available" add column "mentor_id" text; |
1 change: 1 addition & 0 deletions
1
migrations/1716781905611_alter_table_public_mentor_available_drop_column_mentor_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_available" drop column "mentor_id" cascade; |
3 changes: 3 additions & 0 deletions
3
migrations/1716782262682_alter_table_public_mentor_info_drop_column_mentor_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
comment on column "public"."mentor_info"."mentor_id" is E'新生导师信息'; | ||
alter table "public"."mentor_info" alter column "mentor_id" drop not null; | ||
alter table "public"."mentor_info" add column "mentor_id" text; |
1 change: 1 addition & 0 deletions
1
migrations/1716782262682_alter_table_public_mentor_info_drop_column_mentor_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_info" drop column "mentor_id" cascade; |
1 change: 1 addition & 0 deletions
1
migrations/1716782305099_alter_table_public_mentor_message_alter_column_from_uuid/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_message" alter column "from_uuid" drop not null; |
1 change: 1 addition & 0 deletions
1
migrations/1716782305099_alter_table_public_mentor_message_alter_column_from_uuid/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_message" alter column "from_uuid" set not null; |
1 change: 1 addition & 0 deletions
1
migrations/1716782315609_alter_table_public_mentor_message_alter_column_to_uuid/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_message" alter column "to_uuid" drop not null; |
1 change: 1 addition & 0 deletions
1
migrations/1716782315609_alter_table_public_mentor_message_alter_column_to_uuid/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_message" alter column "to_uuid" set not null; |
2 changes: 2 additions & 0 deletions
2
migrations/1716782479166_alter_table_public_mentor_message_drop_column_from_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."mentor_message" alter column "from_id" drop not null; | ||
alter table "public"."mentor_message" add column "from_id" text; |
1 change: 1 addition & 0 deletions
1
migrations/1716782479166_alter_table_public_mentor_message_drop_column_from_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_message" drop column "from_id" cascade; |
2 changes: 2 additions & 0 deletions
2
migrations/1716782503129_alter_table_public_mentor_message_drop_column_to_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."mentor_message" alter column "to_id" drop not null; | ||
alter table "public"."mentor_message" add column "to_id" text; |
1 change: 1 addition & 0 deletions
1
migrations/1716782503129_alter_table_public_mentor_message_drop_column_to_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."mentor_message" drop column "to_id" cascade; |
3 changes: 3 additions & 0 deletions
3
migrations/1716783150254_alter_table_public_users_drop_column_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
alter table "public"."users" add constraint "users_id_key" unique (id); | ||
alter table "public"."users" alter column "id" drop not null; | ||
alter table "public"."users" add column "id" text; |
1 change: 1 addition & 0 deletions
1
migrations/1716783150254_alter_table_public_users_drop_column_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."users" drop column "id" cascade; |