This repository has been archived by the owner on Sep 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: refs #873. Improve community invitation methods
-Add ability to invite by email, including for users that do not exist yet -Add ability to invite into groups besides just the member group
- Loading branch information
1 parent
d5fa3dd
commit 7ac3ef1
Showing
14 changed files
with
601 additions
and
134 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
/** | ||
* Upgrade 3.2.10 adds newuserinvite table | ||
*/ | ||
class Upgrade_3_2_10 extends MIDASUpgrade | ||
{ | ||
|
||
public function preUpgrade() | ||
{ | ||
} | ||
|
||
public function mysql() | ||
{ | ||
$this->db->query("CREATE TABLE `newuserinvitation` ( | ||
`newuserinvitation_id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`auth_key` varchar(255) NOT NULL, | ||
`email` varchar(255) NOT NULL, | ||
`inviter_id` bigint(20) NOT NULL, | ||
`community_id` bigint(20) NOT NULL, | ||
`group_id` bigint(20) NOT NULL, | ||
`date_creation` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`newuserinvitation_id`) | ||
)"); | ||
$this->db->query("ALTER TABLE `communityinvitation` ADD COLUMN `group_id` bigint(20) NULL DEFAULT NULL"); | ||
} | ||
|
||
public function pgsql() | ||
{ | ||
$this->db->query("CREATE TABLE newuserinvitation ( | ||
newuserinvitation_id serial PRIMARY KEY, | ||
auth_key character varying(255) NOT NULL, | ||
email character varying(255) NOT NULL, | ||
inviter_id bigint NOT NULL, | ||
community_id bigint NOT NULL, | ||
group_id bigint NOT NULL, | ||
date_creation timestamp without time zone NOT NULL DEFAULT now() | ||
)"); | ||
$this->db->query("ALTER TABLE communityinvitation ADD COLUMN group_id bigint NULL DEFAULT NULL"); | ||
} | ||
|
||
public function postUpgrade() | ||
{ | ||
} | ||
|
||
} | ||
?> |
Oops, something went wrong.