From 7c5eb190c880d1c9096fea5fd4e4cab33397aec0 Mon Sep 17 00:00:00 2001 From: Bogdanova Olga Date: Mon, 1 Mar 2021 23:49:49 +0300 Subject: [PATCH 1/2] Issues-449: added new GroupInvitation table --- config/vanilla/bootstrap.early.php | 15 +++++++++++++++ config/vanilla/config.php | 3 +++ 2 files changed, 18 insertions(+) diff --git a/config/vanilla/bootstrap.early.php b/config/vanilla/bootstrap.early.php index ee4cf65..cb4051b 100644 --- a/config/vanilla/bootstrap.early.php +++ b/config/vanilla/bootstrap.early.php @@ -137,4 +137,19 @@ Gdn::sql()->query($emptyAncestorQuery); } + // FIX: https://github.com/topcoder-platform/forums/issues/449 + if(!Gdn::structure()->tableExists('GroupInvitation')) { + // Group Invitation Table + Gdn::structure()->table('GroupInvitation') + ->primaryKey('GroupInvitationID') + ->column('GroupID', 'int', false, 'index') + ->column('Token', 'varchar(32)', false, 'unique') + ->column('InvitedByUserID', 'int', false, 'index') + ->column('InviteeUserID', 'int', false, 'index') + ->column('DateInserted', 'datetime', false, 'index') + ->column('Status', ['pending', 'accepted', 'declined', 'deleted']) + ->column('DateAccepted', 'datetime', true) + ->column('DateExpires', 'datetime') + ->set(false, false); + } } \ No newline at end of file diff --git a/config/vanilla/config.php b/config/vanilla/config.php index f13d0b8..2f64789 100644 --- a/config/vanilla/config.php +++ b/config/vanilla/config.php @@ -1,5 +1,6 @@ Date: Mon, 1 Mar 2021 23:52:09 +0300 Subject: [PATCH 2/2] Issues-449: added GroupInvitation table --- config/vanilla/config.php | 1 - 1 file changed, 1 deletion(-) diff --git a/config/vanilla/config.php b/config/vanilla/config.php index 2f64789..731eb9f 100644 --- a/config/vanilla/config.php +++ b/config/vanilla/config.php @@ -1,6 +1,5 @@