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
100716a7
Commit
100716a7
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
a2021d6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin/actions/update-bdd.php
View file @
100716a7
...
...
@@ -4,7 +4,9 @@ $bdd = $oa->getBdd();
$schema
=
new
\
BddAdmin\Schema
(
$bdd
);
$c
->
println
(
"
\n
Mise à jour de la base de données"
,
$c
::
COLOR_LIGHT_CYAN
);
$oa
->
migration
(
'pre'
);
if
(
$oa
->
oldVersion
<
'8.2'
)
{
$oa
->
migration
(
'pre'
);
}
$c
->
println
(
"
\n
"
.
'Mise à jour des définitions de la base de données'
,
$c
::
COLOR_LIGHT_PURPLE
);
...
...
@@ -54,6 +56,7 @@ if (method_exists($oa,'majPrivileges')) { /** @deprecated > 8.2 */
$c
->
println
(
'Fin de la mise à jour des privilèges'
);
}
$c
->
println
(
''
);
$c
->
println
(
'anc VERS='
.
$oa
->
oldVersion
);
$oa
->
migration
(
'post'
);
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