Skip to content
Snippets Groups Projects
Commit c8c9b65b authored by Laurent Lecluse's avatar Laurent Lecluse
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
No related branches found
No related tags found
No related merge requests found
<?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
* @throws \BddAdmin\Exception\BddException
* @throws \BddAdmin\Exception\BddIndexExistsException
*/
public function migration(string $prePost = 'pre'): boolean
public function migration(string $prePost = 'pre'): bool
{
$tags = $this->getTags(1);
foreach ($tags as $i => $tag) {
......
......@@ -6,22 +6,3 @@
* @var $viewName string
* @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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment