Skip to content

Commit

Permalink
chore: delete aid & scholarship table (#181)
Browse files Browse the repository at this point in the history
* chore: delete aid & scholarship table

* chore: remove id fields for all tables
  • Loading branch information
FranGuam authored May 27, 2024
1 parent 761f41a commit 6bea7f6
Show file tree
Hide file tree
Showing 31 changed files with 95 additions and 232 deletions.
283 changes: 51 additions & 232 deletions metadata/tables.yaml

Large diffs are not rendered by default.

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";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP table "public"."aid_application";
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";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP table "public"."scholarship_application";
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;
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;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."honor_application" drop column "student_id" cascade;
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;
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;
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;
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;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_application" drop column "mentor_id" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_application" drop column "student_id" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_available" drop column "mentor_id" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_info" drop column "mentor_id" cascade;
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;
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;
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;
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;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_message" drop column "from_id" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."mentor_message" drop column "to_id" cascade;
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."users" drop column "id" cascade;

0 comments on commit 6bea7f6

Please sign in to comment.