mirror of
https://github.com/hanzoai/team.git
synced 2026-10-30 14:49:35 +00:00
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
14 lines
446 B
SQL
14 lines
446 B
SQL
SET @preparedStatement = (SELECT IF(
|
|
(
|
|
SELECT COUNT(*) FROM INFORMATION_SCHEMA.STATISTICS
|
|
WHERE table_name = 'UserGroups'
|
|
AND table_schema = DATABASE()
|
|
AND index_name = 'idx_usergroups_displayname'
|
|
) > 0,
|
|
'DROP INDEX idx_usergroups_displayname ON UserGroups;',
|
|
'SELECT 1'
|
|
));
|
|
|
|
PREPARE removeIndexIfExists FROM @preparedStatement;
|
|
EXECUTE removeIndexIfExists;
|
|
DEALLOCATE PREPARE removeIndexIfExists; |