-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from maailma/member-types
Configurable member types
- Loading branch information
Showing
24 changed files
with
525 additions
and
427 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -6,20 +6,20 @@ INSERT INTO admin.Admins (email, member_admin, member_list, siteselection, hugo_ | |
|
||
SET ROLE kansa; | ||
|
||
INSERT INTO People (legal_name, email, membership, member_number, hugo_nominator, hugo_voter) | ||
VALUES ('Admin', '[email protected]', 'NonMember', NULL, false, false), | ||
('Member Admin', '[email protected]', 'NonMember', NULL, false, false), | ||
('Site Selection', '[email protected]', 'NonMember', NULL, false, false), | ||
('Hugo Admin', '[email protected]', 'NonMember', NULL, false, false), | ||
('First Member', '[email protected]', 'FirstWorldcon', 2, true, true), | ||
('Fan Parent', '[email protected]', 'Adult', 3, true, true), | ||
('Fan Child', '[email protected]', 'Child', 4, false, false), | ||
('Fan Youth', '[email protected]', 'Youth', 5, true, true), | ||
('Fan Supporter', '[email protected]', 'Supporter', 6, true, true), | ||
('Dupe Supporter', '[email protected]', 'Supporter', 7, false, false), | ||
('Fan Trader', '[email protected]', 'Exhibitor', 8, false, false), | ||
('Fan Helper', '[email protected]', 'Helper', 9, false, false), | ||
('Fan Nominator', '[email protected]', 'NonMember', NULL, true, false); | ||
INSERT INTO People (legal_name, email, membership, member_number) | ||
VALUES ('Admin', '[email protected]', 'NonMember', NULL), | ||
('Member Admin', '[email protected]', 'NonMember', NULL), | ||
('Site Selection', '[email protected]', 'NonMember', NULL), | ||
('Hugo Admin', '[email protected]', 'NonMember', NULL), | ||
('First Member', '[email protected]', 'FirstWorldcon', 2), | ||
('Fan Parent', '[email protected]', 'Adult', 3), | ||
('Fan Child', '[email protected]', 'Child', 4), | ||
('Fan Youth', '[email protected]', 'Youth', 5), | ||
('Fan Supporter', '[email protected]', 'Supporter', 6), | ||
('Dupe Supporter', '[email protected]', 'Supporter', 7), | ||
('Fan Trader', '[email protected]', 'Exhibitor', 8), | ||
('Fan Helper', '[email protected]', 'Helper', 9), | ||
('Fan Nominator', '[email protected]', 'HugoNominator', NULL); | ||
|
||
INSERT INTO Keys | ||
VALUES ('[email protected]', 'key'), | ||
|
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 |
---|---|---|
|
@@ -19,6 +19,8 @@ SET row_security = off; | |
-- Data for Name: people; Type: TABLE DATA; Schema: kansa; Owner: kansa | ||
-- | ||
|
||
ALTER TABLE kansa.people ADD COLUMN hugo_nominator bool; | ||
ALTER TABLE kansa.people ADD COLUMN hugo_voter bool; | ||
COPY kansa.people (id, last_modified, membership, member_number, legal_name, public_first_name, public_last_name, email, city, state, country, badge_name, badge_subtitle, hugo_nominator, hugo_voter, paper_pubs) FROM stdin; | ||
15 2018-07-29 18:14:07.698028+00 FirstWorldcon 43 Factual Blob Fake (Factual) Blob fblog@fblobsblog.com Fact City Data Central Blobitania \N \N \N \N \N | ||
14 2018-07-29 18:14:07.701524+00 Supporter 42 Samuel Vimes \N \N s.vimes@gmial.ocm Ankh-Morpork \N The Disc \N \N \N \N {"name": "Samuel Vimes", "address": "11, Broadstreet\\r\\nAnkh-Morpork", "country": "Ankh-Morpork"} | ||
|
@@ -669,6 +671,8 @@ COPY kansa.people (id, last_modified, membership, member_number, legal_name, pub | |
660 2018-07-29 18:14:40.950855+00 KidInTow 688 Falkrunn Ungart Falkrunn Ungart [email protected] Waren Kein Denmark \N \N \N \N \N | ||
\. | ||
ALTER TABLE kansa.people DROP COLUMN hugo_nominator; | ||
ALTER TABLE kansa.people DROP COLUMN hugo_voter; | ||
-- | ||
-- Data for Name: log; Type: TABLE DATA; Schema: kansa; Owner: kansa | ||
|
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,14 @@ | ||
SET ROLE kansa; | ||
|
||
INSERT INTO membership_types ( | ||
membership, allow_lookup, badge, daypass_available, hugo_nominator, member, wsfs_member) VALUES | ||
('NonMember', true, false, false, false, false, false), | ||
('HugoNominator', true, false, false, true, false, false), | ||
('Exhibitor', true, true, false, false, true, false), | ||
('Helper', true, true, false, false, true, false), | ||
('Supporter', true, false, false, true, true, true), | ||
('KidInTow', false, true, false, false, true, false), | ||
('Child', false, true, true, false, true, false), | ||
('Youth', true, true, true, true, true, true), | ||
('FirstWorldcon', true, true, false, true, true, true), | ||
('Adult', true, true, true, true, true, true); |
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
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
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
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
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
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
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
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
Oops, something went wrong.