mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
39 lines
788 B
PHP
39 lines
788 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2013 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Alchemy\Phrasea\Setup\Version\PreSchemaUpgrade;
|
|
|
|
use Doctrine\ORM\EntityManager;
|
|
use Alchemy\Phrasea\Application;
|
|
|
|
/**
|
|
* Interface for DB schema upgrade that have to be done before Doctrine schema
|
|
* upgrade
|
|
*/
|
|
interface PreSchemaUpgradeInterface
|
|
{
|
|
/**
|
|
* Applies the pre-upgrade/
|
|
*
|
|
* @param EntityManager $em
|
|
*/
|
|
public function apply(EntityManager $em);
|
|
|
|
/**
|
|
* Returns true if the Upgrade is applyable
|
|
*
|
|
* @param Application $app
|
|
*
|
|
* @return Boolean
|
|
*/
|
|
public function isApplyable(Application $app);
|
|
}
|