sqlMigrate : add --execute option to use the configuration file

This commit is contained in:
2021-03-16 15:38:21 +01:00
parent cde2738fe9
commit 556fb57233

View File

@@ -60,8 +60,11 @@ class main
// Manage the Getopts
$getopts = new getopts ();
$getopts->add ("Help", "?h", array ("help"), "Help of the software");
$getopts->add ("Step", "", array ("step:"), "Restart at provided step", "StepIdentifier");
$getopts->add ("Step", "", array ("step:"), "Restart at provided step",
"StepIdentifier");
$getopts->add ("Debug", "", array ("debug"), "Display the SQL requests");
$getopts->add ("Execute", "", array ("execute"),
"Execute the configuration without requesting data");
if ($getopts->get ("Help"))
die ($getopts->help ());
if ($getopts->get ("Step"))
@@ -103,6 +106,8 @@ class main
if ($getopts->get ("Step"))
$step = intval ($getopts->get ("Step"));
if ($getopts->get ("Execute"))
$step = 5;
if ($step === 0)
{