-
-
Notifications
You must be signed in to change notification settings - Fork 961
Open
Labels
Description
🐞 Bug Report
Required Information
? | ! |
---|---|
Operating system | Docker: php:8.3-cli |
PHP Telegram Bot version | 0.82 |
PHP version | 8.3 |
MySQL version | 8.4 |
Update Method | - (don't even start bot) |
Self-signed certificate | - |
RAW update (if available) | - |
Summary
Migrations aren't working for MySQL 8.4. Error occurs during creation telegram_update
table:
Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 6125 Failed to add the foreign key constraint. Missing unique key for constraint 'telegram_update_ibfk_11' in the referenced table 'poll_answer' in /app/vendor/illuminate/database/Connection.php:587
Everything works well if I use MySQL version 8.3, so I'm supposing that database developers changed something and now migrations stopped working.
Current behaviour
How to reproduce
Apply migration in MySQL 8.4.
Expected behaviour
Migrations finish successfully.
dva-repudovmaxim
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
dva-re commentedon Sep 11, 2024
Temporary workarround is
This is because
from: https://dev.mysql.com/doc/refman/8.4/en/mysql-nutshell.html