Files
thetool/db/migrations/20250109160000_add_preorderstatusflagvalue_index.php
2025-01-09 16:38:46 +01:00

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();
}
}
}