Skip to content

Commit 106b299

Browse files
authored
Merge pull request #450 from topcoder-platform/issues-449
Issues-449: added GroupInvitation table
2 parents 1b7ff32 + 6cc0f02 commit 106b299

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

config/vanilla/bootstrap.early.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,19 @@
137137
Gdn::sql()->query($emptyAncestorQuery);
138138
}
139139

140+
// FIX: https://github.com/topcoder-platform/forums/issues/449
141+
if(!Gdn::structure()->tableExists('GroupInvitation')) {
142+
// Group Invitation Table
143+
Gdn::structure()->table('GroupInvitation')
144+
->primaryKey('GroupInvitationID')
145+
->column('GroupID', 'int', false, 'index')
146+
->column('Token', 'varchar(32)', false, 'unique')
147+
->column('InvitedByUserID', 'int', false, 'index')
148+
->column('InviteeUserID', 'int', false, 'index')
149+
->column('DateInserted', 'datetime', false, 'index')
150+
->column('Status', ['pending', 'accepted', 'declined', 'deleted'])
151+
->column('DateAccepted', 'datetime', true)
152+
->column('DateExpires', 'datetime')
153+
->set(false, false);
154+
}
140155
}

config/vanilla/config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@
113113
$Configuration['Plugins']['Sumologic']['HttpSourceURL'] = '';
114114
$Configuration['Plugins']['Sumologic']['BatchSize'] = 10;
115115

116+
// e.g. '+15 min', '+1 day'
117+
$Configuration['Plugins']['Groups']['InviteExpiration']= '+20 min';
116118

117119
// RichEditor
118120
$Configuration['RichEditor']['Quote']['Enable'] = true;

0 commit comments

Comments
 (0)