1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 17:30:59 +01:00
phorge-phorge/resources/sql/autopatches/20150429.calendar.1.invitee.sql
lkassianik d4176606f9 Calendar events should now auto-invite the creator
Summary: Closes T7935, Calendar events should now auto-invite the creator.

Test Plan: Create event, save, event should now show creator as an invitee.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T7935

Differential Revision: https://secure.phabricator.com/D12613
2015-04-29 13:51:09 -07:00

11 lines
516 B
SQL

CREATE TABLE {$NAMESPACE}_calendar.`calendar_eventinvitee` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
`eventPHID` varbinary(64) NOT NULL,
`inviteePHID` varbinary(64) NOT NULL,
`inviterPHID` varbinary(64) NOT NULL,
`status` VARCHAR(64) COLLATE {$COLLATE_TEXT} NOT NULL,
`dateCreated` int(10) unsigned NOT NULL,
`dateModified` int(10) unsigned NOT NULL,
UNIQUE KEY `key_event` (`eventPHID`, `inviteePHID`),
KEY `key_invitee` (`inviteePHID`)
) ENGINE=InnoDB COLLATE {$COLLATE_TEXT};