Mono repo -> Master (#22553)
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
Этот коммит содержится в:
16
server/channels/db/migrations/mysql/000029_create_bots.down.sql
Обычный файл
16
server/channels/db/migrations/mysql/000029_create_bots.down.sql
Обычный файл
@@ -0,0 +1,16 @@
|
||||
SET @preparedStatement = (SELECT IF(
|
||||
(
|
||||
SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS
|
||||
WHERE table_name = 'Bots'
|
||||
AND table_schema = DATABASE()
|
||||
AND column_name = 'LastIconUpdate'
|
||||
) > 0,
|
||||
'ALTER TABLE Bots DROP COLUMN LastIconUpdate;',
|
||||
'SELECT 1'
|
||||
));
|
||||
|
||||
PREPARE alterIfExists FROM @preparedStatement;
|
||||
EXECUTE alterIfExists;
|
||||
DEALLOCATE PREPARE alterIfExists;
|
||||
|
||||
DROP TABLE IF EXISTS bots;
|
||||
Ссылка в новой задаче
Block a user