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

如何能不删除目的数据库中多出来的表 #56

Closed
Urnotprepared opened this issue Feb 17, 2022 · 4 comments
Closed

如何能不删除目的数据库中多出来的表 #56

Urnotprepared opened this issue Feb 17, 2022 · 4 comments

Comments

@Urnotprepared
Copy link

Urnotprepared commented Feb 17, 2022

如何能不删除目的数据库中多出来的表
比如:目的DB 比 源DB 多出来一个表t1
在执行:mysql-schema-sync -conf mydb_conf.json 2>/dev/null >db_alter.sql
文件 db_alter.sql 中会有一个 drop table t1 的语句
咱们项目的 readme 中提到 “默认情况不会对多出的表、字段、索引、外键删除”
但还是会执行 drop 操作,这里是不是存在BUG ?

@hidu
Copy link
Owner

hidu commented Feb 17, 2022

多出来的表是应该不删除才对,实现是有问题

@Urnotprepared
Copy link
Author

请问什么时候能 fix,感谢回复

@hidu
Copy link
Owner

hidu commented Feb 20, 2022

试试最新版本的

@Urnotprepared
Copy link
Author

应该没问题了

@hidu hidu closed this as completed Feb 21, 2022
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