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

[Feature] 可以加个数据库分组吗,支持工单处理多分库的alter场景 #1062

Open
helopng opened this issue Jun 12, 2024 · 3 comments

Comments

@helopng
Copy link

helopng commented Jun 12, 2024

描述需求
目前功能只有单一数据库的,可以支持一下分库场景吗,目前开发对分库一条条提工单很头疼。。

你的思路
如果可以加一个数据库分组,这样对分库的create,alter就在一条工单里执行了
Flyway是配置分库数据源,然后for循环datasource来分别执行alter,可以参考下

截图

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Feature] Can you add a database group to support the alter scenario of work order processing in multiple databases?

Describe requirements
Currently, the function is only for a single database. Can it support the sub-database scenario? Currently, it is a headache for development to submit work orders one by one for sub-databases. .

your thoughts
If you can add a database group, then the create and alter of the sub-database will be executed in one work order.
Flyway configures the sub-datasource, and then for loops the datasource to execute alter respectively. You can refer to the following

screenshot
None

@helopng
Copy link
Author

helopng commented Jun 21, 2024

用gpt写了个循环执行分库alter,就是用起来不如页面上方便

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I used gpt to write a loop to execute sub-library alter, but it is not as convenient to use as on the page.

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

No branches or pull requests

3 participants