Commit 0f25e729 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Prise en compte des anciennes versions pour exploiter les scripts de migration correctement

parent 2b6ec51b
......@@ -3,6 +3,12 @@
// Script provisoire : il aura disparu à la prochaine version!!!
$c->println('Mise à jour automatique de la base de données', $c::COLOR_LIGHT_CYAN);
$oa->oldVersion = $oa->purgerVersion($c->getArg(2));
$oa->version = $oa->purgerVersion($c->getArg(3));
$c->println('ancienne version='.$oa->oldVersion);
$c->println('nouvelle version='.$oa->version);
$oa->migration('pre');
$oa->run('update-bdd');
$oa->migration('post');
\ No newline at end of file
......@@ -189,7 +189,7 @@ class OseAdmin
private function purgerVersion(string $version): string
public function purgerVersion(string $version): string
{
$version = strtolower($version);
if (false !== ($p = strpos($version, 'alpha'))) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment