Skip to content

Commit

Permalink
Use pre MariaDB 10.5 way of renaming column, for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
noplanman committed May 24, 2024
1 parent 4fd6663 commit 14c77eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/db-schema-update/0.82.0-unreleased.sql
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS `chat_boost_removed` (
ALTER TABLE `message`
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`,
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`,
RENAME COLUMN `user_shared` TO `users_shared`;
CHANGE COLUMN `user_shared` `users_shared` TEXT;

ALTER TABLE `telegram_update`
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`,
Expand Down

0 comments on commit 14c77eb

Please sign in to comment.