Skip to content

Commit

Permalink
Merge pull request #11 from vash3g/ChapterRepAddition
Browse files Browse the repository at this point in the history
Chapter rep addition to chapters table and members_view.

Note: Note yet posted to production.
  • Loading branch information
Michael Hiiva authored May 12, 2021
2 parents b583313 + f37f752 commit 679c9ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Schema's for the USGO Databases
| ----------- | -------- | ------------------------ | -------------------- | --------------- |
| AGAGD update for the ratings table | 20201009_update_ratings_table.sql | 2020-10-09 | 2020-10-27 | 2020-10-12 |
| AGAGD update for the members_view | 20201025_replace_member_view.sql | 2020-10-25 | 2020-11-14 | 2020-11-14 |
| MM Update for Chapters Table | 20210431_add_chapter_columns.sql | 2021-04-28 | | |

## Method
### Provided by Anna Wiggins via Slack
Expand Down
6 changes: 6 additions & 0 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ CREATE TABLE `chapters` (
`code` CHAR(4) DEFAULT NULL,
`contact` VARCHAR(255) DEFAULT NULL,
`rep_id` INT(11) DEFAULT NULL,
`rep_id2` INT(11) DEFAULT NULL,
`rep_id3` INT(11) DEFAULT NULL,
`url` VARCHAR(255) DEFAULT NULL,
`meeting_city` VARCHAR(255) DEFAULT NULL,
`contact_html` TEXT,
Expand All @@ -67,6 +69,8 @@ CREATE TABLE `chapters` (
`comments` TEXT,
`fees` VARCHAR(255) DEFAULT NULL,
`display` SMALLINT(1) NOT NULL DEFAULT '1',
'faculty_advisor' VARCHAR(50) DEFAULT NULL,
'faculty_advisor_email' VARCHAR(75) DEFAULT NULL,
PRIMARY KEY (`member_id`),
KEY `code` (`code`),
KEY `name` (`name`)
Expand Down Expand Up @@ -446,6 +450,8 @@ CREATE VIEW `members_view` AS
`c`.`meeting_text` AS `meeting_text`,
`c`.`url` AS `url`,
`c`.`rep_id` AS `rep_id`,
`c`.`rep_id2` AS `rep_id2`,
`c`.`rep_id3` AS `rep_id3`,
`p`.`Rating` AS `rating`,
`p`.`Sigma` AS `sigma`,
`p`.`Tot_Tournaments` AS `tournaments`,
Expand Down
5 changes: 5 additions & 0 deletions updates/20210431_add_chapter_columns.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE `chapters`
ADD COLUMN `rep_id2` INT NULL after 'rep_id',
ADD COLUMN `rep_id3` INT NULL after 'rep_id2',
ADD COLUMN 'Faculty_Advisor' VARCHAR(50) NULL after 'display',
ADD COLUMN 'Faculty_Advisor_Email' VARCHAR(75) NULL after 'Faculty_Advisor';

0 comments on commit 679c9ee

Please sign in to comment.