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

Add --replace to click-odoo-initdb #73

Open
yajo opened this issue Apr 24, 2020 · 2 comments
Open

Add --replace to click-odoo-initdb #73

yajo opened this issue Apr 24, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@yajo
Copy link
Contributor

yajo commented Apr 24, 2020

As click-odoo-initdb is most useful for development, one good improvement IMHO would be to autodelete the chosen db if existing.

So, if I execute: click-odoo-initdb -rn devel -m web_responsive and devel exists, the script deletes it before re-creating it (maybe from cache, and all that stuff it does).

I think it would lower the barrier for development.

Should it call click-odoo-dropdb behind the scenes? If so, is there an easy or supported way to do it with click without a subprocess?

@sbidoul sbidoul added the enhancement New feature or request label Apr 24, 2020
@sbidoul
Copy link
Member

sbidoul commented Apr 24, 2020

Why not. A subprocess call is probably the safest and easiest.

@sbidoul
Copy link
Member

sbidoul commented Apr 29, 2020

It'd be equivalent to click-odoo-dropdb --if-exists DBNAME && click-odoo-initdb ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants