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

Mise ne place d'un script provisoire de migration pour faire la passerelle...

Mise ne place d'un script provisoire de migration pour faire la passerelle entre les versions du système de mise à jour...
parent ef3c5ab9
<?php
// Script provisoire : il aura disparu à la prochaine version!!!
$oa->run('update-bdd');
\ No newline at end of file
...@@ -176,7 +176,7 @@ class OseAdmin ...@@ -176,7 +176,7 @@ class OseAdmin
* @throws \BddAdmin\Exception\BddException * @throws \BddAdmin\Exception\BddException
* @throws \BddAdmin\Exception\BddIndexExistsException * @throws \BddAdmin\Exception\BddIndexExistsException
*/ */
public function migration(string $prePost = 'pre'): boolean public function migration(string $prePost = 'pre'): bool
{ {
$tags = $this->getTags(1); $tags = $this->getTags(1);
foreach ($tags as $i => $tag) { foreach ($tags as $i => $tag) {
......
...@@ -6,22 +6,3 @@ ...@@ -6,22 +6,3 @@
* @var $viewName string * @var $viewName string
* @var $sl \Zend\ServiceManager\ServiceLocatorInterface * @var $sl \Zend\ServiceManager\ServiceLocatorInterface
*/ */
$tags = [
'7.0',
'7.1 BETA 5',
'7.1',
'7.2 ALPHA',
'8.0beta',
];
foreach ( $tags as $i => $tag ){
$tag = strtolower($tag);
if (false !== ($p = strpos($tag,'alpha'))){
$tags[$i] = trim(substr($tag, 0, $p));
}
if (false !== ($p = strpos($tag,'beta'))){
$tags[$i] = trim(substr($tag, 0, $p));
}
}
$tags = array_unique($tags);
var_dump($tags);
\ 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