[IMP] postgtresql-version option

This commit is contained in:
Sylvain LE GAL 2024-09-30 17:05:56 +02:00
parent 4536c52558
commit 846d2f631b
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,2 @@
* Avoid to crash if postgresql-version is not set, adding prompt option.
* add extra text to mention postgresql version constraints.

View File

@ -39,11 +39,15 @@ from odoo_openupgrade_wizard.tools.tools_system import (
@click.option( @click.option(
"--postgresql-version", "--postgresql-version",
required=True, required=True,
prompt=True,
help="The version of postgresql that will be used" help="The version of postgresql that will be used"
" to create the postgresql container.Ex : '9.1', '16', ..." " to create the postgresql container.Ex : '9.1', '16', ..."
" The version should be available in docker hub." " The version should be available in docker hub."
" (https://hub.docker.com/_/postgres)" " (https://hub.docker.com/_/postgres)"
" avoid the 'latest' version if you want a deterministic installation.", " avoid the 'latest' version if you want a deterministic installation."
" Key Point: If your current production server uses Postgresql version A"
" and if your future production server usees Postgresql version B,"
" you should select here a version X, with A <= X <= B.",
) )
@click.option( @click.option(
"--extra-repository", "--extra-repository",