You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
477 B
PHTML
19 lines
477 B
PHTML
7 years ago
|
<?php
|
||
|
|
||
|
class LegacyUpdateMigration extends AbstractMigration {
|
||
|
private $upVersion;
|
||
|
private $downVersion;
|
||
|
|
||
|
public function __construct($upVersion, $downVersion) {
|
||
|
$this->upVersion = $upVersion;
|
||
|
$this->downVersion = $downVersion;
|
||
|
}
|
||
|
|
||
|
function up($hesk_settings) {
|
||
|
$this->updateVersion($this->upVersion, $hesk_settings);
|
||
|
}
|
||
|
|
||
|
function down($hesk_settings) {
|
||
|
$this->updateVersion($this->downVersion, $hesk_settings);
|
||
|
}
|
||
|
}
|