recusfiscaux/upgrade.php

19 lines
506 B
PHP
Raw Normal View History

<?php
namespace Garradin;
use Garradin\Entities\Files\File;
$db = DB::getInstance();
$old_version = $plugin->getInfos('version');
if (version_compare($old_version, '0.6.0', '<'))
{
$path = __DIR__ . '/data/default_logo.png';
$default_logo_file = (new File)->createAndStore('skel/plugin/recusfiscaux',
'default_logo.png',
$path,
null);
}