Skip to content

Commit 56bfd1f

Browse files
committed
switch to utf8mb4_unicode_520_ci collation
1 parent 0647dcb commit 56bfd1f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

structure.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS `user` (
77
`updated_at` timestamp NULL DEFAULT NULL COMMENT 'Entry date update',
88
PRIMARY KEY (`id`),
99
KEY `username` (`username`)
10-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
10+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
1111

1212
CREATE TABLE IF NOT EXISTS `chat` (
1313
`id` bigint COMMENT 'Unique user or chat identifier',
@@ -18,7 +18,7 @@ CREATE TABLE IF NOT EXISTS `chat` (
1818
`old_id` bigint DEFAULT NULL COMMENT 'Unique chat identifieri this is filled when a chat is converted to a superchat',
1919
PRIMARY KEY (`id`),
2020
KEY `old_id` (`old_id`)
21-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
21+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
2222

2323
CREATE TABLE IF NOT EXISTS `user_chat` (
2424
`user_id` bigint COMMENT 'Unique user identifier',
@@ -28,7 +28,7 @@ CREATE TABLE IF NOT EXISTS `user_chat` (
2828
ON DELETE CASCADE ON UPDATE CASCADE,
2929
FOREIGN KEY (`chat_id`) REFERENCES `chat` (`id`)
3030
ON DELETE CASCADE ON UPDATE CASCADE
31-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
31+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
3232

3333
CREATE TABLE IF NOT EXISTS `inline_query` (
3434
`id` bigint UNSIGNED COMMENT 'Unique identifier for this query.',
@@ -43,7 +43,7 @@ CREATE TABLE IF NOT EXISTS `inline_query` (
4343
FOREIGN KEY (`user_id`)
4444
REFERENCES `user` (`id`)
4545

46-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
46+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
4747

4848
CREATE TABLE IF NOT EXISTS `chosen_inline_result` (
4949
`id` bigint UNSIGNED AUTO_INCREMENT COMMENT 'Unique identifier for chosen query.',
@@ -59,7 +59,7 @@ CREATE TABLE IF NOT EXISTS `chosen_inline_result` (
5959
FOREIGN KEY (`user_id`)
6060
REFERENCES `user` (`id`)
6161

62-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
62+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
6363

6464
CREATE TABLE IF NOT EXISTS `callback_query` (
6565
`id` bigint UNSIGNED COMMENT 'Unique identifier for this query.',
@@ -74,7 +74,7 @@ CREATE TABLE IF NOT EXISTS `callback_query` (
7474
FOREIGN KEY (`user_id`)
7575
REFERENCES `user` (`id`)
7676

77-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
77+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
7878

7979
CREATE TABLE IF NOT EXISTS `message` (
8080
`chat_id` bigint COMMENT 'Chat identifier.',
@@ -129,7 +129,7 @@ CREATE TABLE IF NOT EXISTS `message` (
129129
FOREIGN KEY (`new_chat_member`) REFERENCES `user` (`id`),
130130
FOREIGN KEY (`left_chat_member`) REFERENCES `user` (`id`)
131131

132-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
132+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
133133

134134
CREATE TABLE IF NOT EXISTS `telegram_update` (
135135
`id` bigint UNSIGNED COMMENT 'The update\'s unique identifier.',
@@ -149,7 +149,7 @@ CREATE TABLE IF NOT EXISTS `telegram_update` (
149149
FOREIGN KEY (`inline_query_id`) REFERENCES `inline_query` (`id`),
150150
FOREIGN KEY (`chosen_inline_result_id`) REFERENCES `chosen_inline_result` (`id`),
151151
FOREIGN KEY (`callback_query_id`) REFERENCES `callback_query` (`id`)
152-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
152+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
153153

154154
CREATE TABLE IF NOT EXISTS `conversation` (
155155
`id` bigint(20) unsigned AUTO_INCREMENT COMMENT 'Row unique id',
@@ -170,4 +170,4 @@ CREATE TABLE IF NOT EXISTS `conversation` (
170170
REFERENCES `user` (`id`),
171171
FOREIGN KEY (`chat_id`)
172172
REFERENCES `chat` (`id`)
173-
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
173+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

0 commit comments

Comments
 (0)