Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an explicit SQL error about dark_chat tables #1142

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Fixed an explicit SQL error about dark_chat tables #1142

merged 1 commit into from
Mar 20, 2024

Conversation

Ericple
Copy link
Contributor

@Ericple Ericple commented Mar 16, 2024

Fixed an explicit SQL error that caused the UNIQUE INDEX to be too long when creating a dark chat related table.

According to the MySQL INNODB limit, when using the utf8mb4 character set, you cannot set a UNIQUE INDEX longer than 191 characters. On line 208 of import.sql, the community developer misidentifies the 255 character column defined on line 205 as the index. This caused MySql to fail to execute the statement, which in turn caused the last three data tables to fail to be created. A workaround for reference is to "change" VARCHAR(255) to "VARCHAR(191)" in line 205, but you can also set 191 to any number less than it you like.

Reference: https://dev.mysql.com/doc/refman/8.0/en/innodb-limits.html

@itschip
Copy link
Member

itschip commented Mar 20, 2024

LGTM

@itschip
Copy link
Member

itschip commented Mar 20, 2024

Thank you for fixing this! :)

@itschip itschip merged commit 8837c4c into project-error:master Mar 20, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants