-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
从V1.9.1升级到1.10.0版本升级遇到的BUG #2299
Comments
看起来是唯一索引的变更导致,如果无法直接migrate,自行sql变更也可以 |
修改sql脚本 src/init_sql/v1.10.0.sql -- 然后在索引重建后,再重新添加外键 注意如果脚本已执行过一次,把上面执行过的语句注释掉 |
重现步骤
从V1.9.1升级到1.10.0版本升级遇到的BUG
报错如下:
ERROR 1553 (HY000) at line 6: Cannot drop index 'instance_account_instance_id_user_host_514c1ac6_uniq': needed in a foreign key constraint
预期外的结果
报错如下:
ERROR 1553 (HY000) at line 6: Cannot drop index 'instance_account_instance_id_user_host_514c1ac6_uniq': needed in a foreign key constraint
日志文本
No response
版本
1.9.1
部署方式
Docker
是否还有其他可以辅助定位问题的信息?比如数据库版本等
No response
The text was updated successfully, but these errors were encountered: