mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
Fix migration
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user