2017-04-17 21:31:45 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
abstract class DataMigration
|
|
|
|
{
|
2017-04-19 09:12:36 +01:00
|
|
|
/**
|
|
|
|
* Gets the version number this data migration applies to.
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
abstract function getVersion();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Runs this data migration.
|
|
|
|
* @param string $currentVersion Current version being upgraded from.
|
|
|
|
*/
|
2017-04-17 21:31:45 +01:00
|
|
|
abstract function run($currentVersion);
|
|
|
|
}
|