Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
57500424
Commit
57500424
authored
Jul 15, 2019
by
Laurent Lécluse
Browse files
On évite les doubles migrations si on provient d'une version de OSE < 8.2
parent
100716a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
admin/actions/migration.php
View file @
57500424
...
...
@@ -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
admin/actions/update-bdd.php
View file @
57500424
...
...
@@ -4,7 +4,7 @@ $bdd = $oa->getBdd();
$schema
=
new
\
BddAdmin\Schema
(
$bdd
);
$c
->
println
(
"
\n
Mise à 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment