-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rearrange mentor application form (#185)
- Loading branch information
Showing
19 changed files
with
153 additions
and
22 deletions.
There are no files selected for viewing
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
4 changes: 4 additions & 0 deletions
4
migrations/1723102508087_alter_table_public_mentor_application_add_column_year/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,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."mentor_application" add column "year" integer | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
migrations/1723102508087_alter_table_public_mentor_application_add_column_year/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,2 @@ | ||
alter table "public"."mentor_application" add column "year" integer | ||
null; |
4 changes: 4 additions & 0 deletions
4
...tions/1723105728516_alter_table_public_mentor_available_add_column_max_applicant/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,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."mentor_available" add column "max_applicant" integer | ||
-- not null default '1'; |
2 changes: 2 additions & 0 deletions
2
migrations/1723105728516_alter_table_public_mentor_available_add_column_max_applicant/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,2 @@ | ||
alter table "public"."mentor_available" add column "max_applicant" integer | ||
not null default '1'; |
4 changes: 4 additions & 0 deletions
4
migrations/1723107907984_alter_table_public_mentor_info_add_column_available/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,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."mentor_info" add column "available" boolean | ||
-- not null default 'false'; |
2 changes: 2 additions & 0 deletions
2
migrations/1723107907984_alter_table_public_mentor_info_add_column_available/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,2 @@ | ||
alter table "public"."mentor_info" add column "available" boolean | ||
not null default 'false'; |
4 changes: 4 additions & 0 deletions
4
migrations/1723107951030_alter_table_public_mentor_info_add_column_max_applicants/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,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."mentor_info" add column "max_applicants" integer | ||
-- not null default '1'; |
2 changes: 2 additions & 0 deletions
2
migrations/1723107951030_alter_table_public_mentor_info_add_column_max_applicants/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,2 @@ | ||
alter table "public"."mentor_info" add column "max_applicants" integer | ||
not null default '1'; |
1 change: 1 addition & 0 deletions
1
migrations/1723208713299_alter_table_public_mentor_application_alter_column_year/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 "year" drop default; |
1 change: 1 addition & 0 deletions
1
migrations/1723208713299_alter_table_public_mentor_application_alter_column_year/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 "year" set default '2023'; |
1 change: 1 addition & 0 deletions
1
migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/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 "year" drop not null; |
1 change: 1 addition & 0 deletions
1
migrations/1723208779923_alter_table_public_mentor_application_alter_column_year/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 "year" set not null; |
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"."freshman"; |
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 @@ | ||
CREATE TABLE "public"."freshman" ("student_no" text NOT NULL, "realname" text NOT NULL, "year" int4 NOT NULL, PRIMARY KEY ("student_no") , UNIQUE ("student_no")); |
4 changes: 4 additions & 0 deletions
4
migrations/1723724576894_alter_table_public_freshman_add_column_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,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."freshman" add column "uuid" uuid | ||
-- null unique; |
2 changes: 2 additions & 0 deletions
2
migrations/1723724576894_alter_table_public_freshman_add_column_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,2 @@ | ||
alter table "public"."freshman" add column "uuid" uuid | ||
null unique; |
1 change: 1 addition & 0 deletions
1
migrations/1723874910629_alter_table_public_mentor_info_alter_column_max_applicants/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_info" alter column "max_applicants" set default '1'; |
1 change: 1 addition & 0 deletions
1
migrations/1723874910629_alter_table_public_mentor_info_alter_column_max_applicants/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" alter column "max_applicants" set default '5'; |