Fix migration

This commit is contained in:
Nicolas Le Goff
2013-11-13 12:36:22 +01:00
parent 57c9e6e453
commit d8ea06b521
79 changed files with 1249 additions and 1060 deletions

View File

@@ -4,12 +4,44 @@ use Alchemy\Phrasea\Application;
interface patchInterface
{
/**
* Returns the release version.
*
* @return string
*/
public function get_release();
/**
* Returns whether the patch concerns the Application Box or
* the Data Box.
*
* It accepts base::APPLICATION_BOX or base::DATA_BOX value.
*
* @return array
*/
public function concern();
/**
* Tells whether the patch must be run after the others or not.
*
* @return boolean
*/
public function require_all_upgrades();
/**
* Apply patch.
*
* @param base $base The Application Box or the Data Boxes where the patch is applied.
* @param Application $app
*
* @return boolean returns true if the patch succeed.
*/
public function apply(base $base, Application $app);
/**
* Returns doctrine migrations needed for the patch.
*
* @return array
*/
public function getDoctrineMigrations();
}