silverstripe-framework/dev/MigrationTask.php
Mark Rickerby f606f92be6 renaming 'testing' to 'dev' after discussion with Sam
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@55798 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-06-06 03:13:21 +00:00

24 lines
361 B
PHP

<?php
/**
* A migration task is a build task that is reversible.
*
* Up and Down methods must be implemented.
*
*/
abstract class MigrationTask extends BuildTask {
function run($request) {
if ($request->param('Direction') == 'down') {
$this->down();
} else {
$this->up();
}
}
abstract function up();
abstract function down();
}
?>