Skip to content

Commit

Permalink
Schema addition for Chapter Reps
Browse files Browse the repository at this point in the history
Added chapter rep columns for membership PR #84
  • Loading branch information
vash3g committed Apr 27, 2021
1 parent b583313 commit 110033d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 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 Down Expand Up @@ -446,6 +448,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
3 changes: 3 additions & 0 deletions updates/20210431_add_chapter_columns.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE `chapters`
ADD COLUMN `rep_id2` INT NULL,
ADD COLUMN `rep_id3` INT NULL;

0 comments on commit 110033d

Please sign in to comment.