amélioration gestion champs nom
FossilOrigin-Name: 2e194af9739c1603c6471619fe3b9720beb014d8d11442d01a42fc722ca9e790
This commit is contained in:
parent
7d4d305cfa
commit
3e53f19453
8 changed files with 72 additions and 38 deletions
13
upgrade.php
13
upgrade.php
|
|
@ -2,12 +2,15 @@
|
|||
|
||||
namespace Garradin;
|
||||
|
||||
use Garradin\Entities\Files\File;
|
||||
|
||||
$db = DB::getInstance();
|
||||
|
||||
$old_version = $plugin->getInfos('version');
|
||||
|
||||
if (version_compare($old_version, '0.6.0', '<'))
|
||||
if (version_compare($old_version, '0.6.2', '<'))
|
||||
{
|
||||
// changement de nom de la configuration des champs nom
|
||||
$champsNom = $plugin->getConfig('nomChamps');
|
||||
if (null !== $champsNom)
|
||||
{
|
||||
$plugin->setConfig('champsNom', $champsNom);
|
||||
$plugin->setConfig('nomChamps', null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue