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

On évite les doubles migrations si on provient d'une version de OSE < 8.2

parent 100716a7
......@@ -6,4 +6,6 @@ $c->println('Mise à jour automatique de la base de données', $c::COLOR_LIGHT_C
$oa->oldVersion = $oa->purgerVersion($c->getArg(2));
$oa->version = $oa->purgerVersion($c->getArg(3));
$oa->run('update-bdd');
\ No newline at end of file
$oa->migration('pre');
$oa->run('update-bdd');
$oa->migration('post');
\ No newline at end of file
......@@ -4,7 +4,7 @@ $bdd = $oa->getBdd();
$schema = new \BddAdmin\Schema($bdd);
$c->println("\nMise à jour de la base de données", $c::COLOR_LIGHT_CYAN);
if ($oa->oldVersion < '8.2') {
if ($oa->oldVersion >= '8.2') {
$oa->migration('pre');
}
......@@ -56,7 +56,7 @@ if (method_exists($oa,'majPrivileges')) { /** @deprecated > 8.2 */
$c->println('Fin de la mise à jour des privilèges');
}
$c->println('');
if ($oa->oldVersion < '8.2') {
if ($oa->oldVersion >= '8.2') {
$oa->migration('post');
}
$c->println('');
\ No newline at end of file
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