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

0.62 -> 0.63 – Syntax error near 'CONSTRAINT message_ibfk_6'… #1125

Closed
0xEAB opened this issue Sep 6, 2020 · 2 comments
Closed

0.62 -> 0.63 – Syntax error near 'CONSTRAINT message_ibfk_6'… #1125

0xEAB opened this issue Sep 6, 2020 · 2 comments
Labels

Comments

@0xEAB
Copy link

0xEAB commented Sep 6, 2020

💥 BC Break Report

Required Information

? !
Operating system CentOS 7
PHP Telegram Bot version 0.63.1
PHP version 7.3.21
MySQL version 5.5.5-10.1.29-MariaDB

Summary

Migration script produces the following error:

(1064): Syntax error near 'CONSTRAINT `message_ibfk_6`' 

How to reproduce

Run the v0.63 migration script on a v0.62 DB.

Expected behaviour

Migration script just works.

@0xEAB 0xEAB added the bc break label Sep 6, 2020
@noplanman
Copy link
Member

@0xEAB Thanks for reporting.

This may have to do with earlier MySQL versions having a different syntax for removing foreign key constraints.

Try with this and let me know if that works please:

ALTER TABLE `message`
    DROP FOREIGN KEY IF EXISTS `message_ibfk_6`,
    DROP INDEX IF EXISTS `message_ibfk_6`;

@0xEAB
Copy link
Author

0xEAB commented Sep 7, 2020

thanks, working fine here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants