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

能否忽略同表名,同外键内容,但是外键名称有不同的情况 #30

Open
anic opened this issue Dec 20, 2019 · 2 comments

Comments

@anic
Copy link

anic commented Dec 20, 2019

两个库的同名表,使用navicat把第一张表复制到另一个库,表名相同,外键也有,但是外键名称发生了 一点变化。

image

image

使用mysql-schema-sync分析差异后,就会生成更新脚本
image

能否忽略这种同表名,同外键内容,但是外键名称有不同的情况?

@hidu
Copy link
Owner

hidu commented Jan 1, 2020

可以试下配置下配置文件(config.json)里的 alter_ignore 的 foreign 字段。

@anic
Copy link
Author

anic commented Jan 1, 2020

可以试下配置下配置文件(config.json)里的 alter_ignore 的 foreign 字段。

只能忽略,不能比较不同外键是否内容相同而名称不同么?

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

No branches or pull requests

2 participants