20 lines
600 B
PHP
20 lines
600 B
PHP
<?php /** @noinspection ALL */
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class AddPreorderstatusflagvalueIndex extends AbstractMigration {
|
|
public function up(): void {
|
|
if ($this->getEnvironment() == "thetool") {
|
|
//VoiceCallHistory Table add start index
|
|
$this->table("PreorderStatusflagValue")->addIndex(["flag_id"])->save();
|
|
}
|
|
}
|
|
|
|
public function down(): void {
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$this->table("PreorderStatusflagValue")->removeIndex(["flag_id"])->save();
|
|
}
|
|
}
|
|
}
|