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.
21 lines
556 B
PHP
21 lines
556 B
PHP
<?php
|
|
|
|
class UpdateMigration extends AbstractUpdatableMigration {
|
|
private $upVersion;
|
|
private $downVersion;
|
|
|
|
public function __construct($upVersion, $downVersion, $migrationNumber) {
|
|
parent::__construct($migrationNumber);
|
|
|
|
$this->upVersion = $upVersion;
|
|
$this->downVersion = $downVersion;
|
|
}
|
|
|
|
function innerUp($hesk_settings) {
|
|
$this->updateVersion($this->upVersion, $hesk_settings);
|
|
}
|
|
|
|
function innerDown($hesk_settings) {
|
|
$this->updateVersion($this->downVersion, $hesk_settings);
|
|
}
|
|
} |