From 88481862f7e8e231fe59ab287395e920f7a9fc0b Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 12 May 2020 18:57:29 +0530 Subject: [PATCH] MM-24911: re-add the reactions table migration (#14487) Adding the line to migrate it in 5.24 Co-authored-by: mattermod --- store/sqlstore/upgrade.go | 1 + 1 file changed, 1 insertion(+) diff --git a/store/sqlstore/upgrade.go b/store/sqlstore/upgrade.go index ce9f25c723..ffcc648563 100644 --- a/store/sqlstore/upgrade.go +++ b/store/sqlstore/upgrade.go @@ -798,6 +798,7 @@ func upgradeDatabaseToVersion524(sqlStore SqlStore) { // if shouldPerformUpgrade(sqlStore, VERSION_5_23_0, VERSION_5_24_0) { sqlStore.CreateColumnIfNotExists("UserGroups", "AllowReference", "boolean", "boolean", "0") + sqlStore.AlterPrimaryKey("Reactions", []string{"PostId", "UserId", "EmojiName"}) // saveSchemaVersion(sqlStore, VERSION_5_24_0) // }