Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ca9eeb1

Browse files
committed
Added missing chat_boost_updated and chat_boost_removed references to structure.sql
1 parent 8f9cd11 commit ca9eeb1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎structure.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ CREATE TABLE IF NOT EXISTS `telegram_update` (
378378
`my_chat_member_updated_id` BIGINT UNSIGNED NULL COMMENT 'The bot''s chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.',
379379
`chat_member_updated_id` BIGINT UNSIGNED NULL COMMENT 'A chat member''s status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify "chat_member" in the list of allowed_updates to receive these updates.',
380380
`chat_join_request_id` BIGINT UNSIGNED NULL COMMENT 'A request to join the chat has been sent',
381+
`chat_boost_updated_id` BIGINT UNSIGNED NULL COMMENT 'A chat boost was added or changed.',
382+
`chat_boost_removed_id` BIGINT UNSIGNED NULL COMMENT 'A boost was removed from a chat.',
381383

382384
PRIMARY KEY (`id`),
383385
KEY `message_id` (`message_id`),
@@ -409,7 +411,9 @@ CREATE TABLE IF NOT EXISTS `telegram_update` (
409411
FOREIGN KEY (`poll_answer_poll_id`) REFERENCES `poll_answer` (`poll_id`),
410412
FOREIGN KEY (`my_chat_member_updated_id`) REFERENCES `chat_member_updated` (`id`),
411413
FOREIGN KEY (`chat_member_updated_id`) REFERENCES `chat_member_updated` (`id`),
412-
FOREIGN KEY (`chat_join_request_id`) REFERENCES `chat_join_request` (`id`)
414+
FOREIGN KEY (`chat_join_request_id`) REFERENCES `chat_join_request` (`id`),
415+
FOREIGN KEY (`chat_boost_updated_id`) REFERENCES `chat_boost_updated` (`id`),
416+
FOREIGN KEY (`chat_boost_removed_id`) REFERENCES `chat_boost_removed` (`id`)
413417
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
414418

415419
CREATE TABLE IF NOT EXISTS `conversation` (

‎utils/db-schema-update/0.82.0-0.83.0.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ ALTER TABLE `telegram_update`
7070
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`,
7171
ADD COLUMN `message_reaction_count_id` bigint UNSIGNED DEFAULT NULL COMMENT 'Reactions to a message with anonymous reactions were changed' AFTER `message_reaction_id`;
7272

73-
ALTER TABLE `telegram_update` ADD COLUMN `chat_boost_updated_id` BIGINT UNSIGNED NULL COMMENT 'A boost update the chat has been sent';
73+
ALTER TABLE `telegram_update` ADD COLUMN `chat_boost_updated_id` BIGINT UNSIGNED NULL COMMENT 'A chat boost was added or changed.';
7474
ALTER TABLE `telegram_update` ADD FOREIGN KEY (`chat_boost_updated_id`) REFERENCES `chat_boost_updated` (`id`);
7575

76-
ALTER TABLE `telegram_update` ADD COLUMN `chat_boost_removed_id` BIGINT UNSIGNED NULL COMMENT 'A boost remove from the chat has been sent';
76+
ALTER TABLE `telegram_update` ADD COLUMN `chat_boost_removed_id` BIGINT UNSIGNED NULL COMMENT 'A boost was removed from a chat.';
7777
ALTER TABLE `telegram_update` ADD FOREIGN KEY (`chat_boost_removed_id`) REFERENCES `chat_boost_removed` (`id`);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /