Skip to content

Commit 14c77eb

Browse files
committed
Use pre MariaDB 10.5 way of renaming column, for backwards compatibility
1 parent 4fd6663 commit 14c77eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/db-schema-update/0.82.0-unreleased.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS `chat_boost_removed` (
6060
ALTER TABLE `message`
6161
ADD COLUMN `external_reply` TEXT NULL DEFAULT NULL COMMENT 'Optional. Information about the message that is being replied to, which may come from another chat or forum topic' AFTER `reply_to_message`,
6262
ADD COLUMN `link_preview_options` TEXT NULL DEFAULT NULL COMMENT 'Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed' AFTER `via_bot`,
63-
RENAME COLUMN `user_shared` TO `users_shared`;
63+
CHANGE COLUMN `user_shared` `users_shared` TEXT;
6464

6565
ALTER TABLE `telegram_update`
6666
ADD COLUMN `message_reaction_id` bigint UNSIGNED DEFAULT NULL COMMENT 'A reaction to a message was changed by a user' AFTER `edited_channel_post_id`,

0 commit comments

Comments
 (0)