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

支持添加字段吗 #268

Open
henrydingchina opened this issue May 7, 2024 · 1 comment
Open

支持添加字段吗 #268

henrydingchina opened this issue May 7, 2024 · 1 comment

Comments

@henrydingchina
Copy link

问题

  • 我在使用这个库进行分库分表操作的时候,随着业务的增加更新,可能需要对表中的字段进行了调整,
  • 比如我原始分了3张月表,里面只有字段id,name,后面我新增了字段type,组件会自动帮我创建字段吗?
@xuejmnet
Copy link
Collaborator

xuejmnet commented May 7, 2024

@henrydingchina 如果你有迁移文件使用code-first的话那么是支持得,如果没用code-first,可以在添加字段前初始化一份迁移文件然后添加字段也是支持的,如果不放心可以通过生成迁移脚本来查看是否生成了

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