diff --git a/db/migrations/20240207085822_add_voice_plan_index.php b/db/migrations/20240207085822_add_voice_plan_index.php new file mode 100644 index 000000000..2bcef74ee --- /dev/null +++ b/db/migrations/20240207085822_add_voice_plan_index.php @@ -0,0 +1,31 @@ +getEnvironment() == "thetool") { + $this->execute("ALTER TABLE `Voiceplanzone` ADD INDEX `voiceplan_id` (`voiceplan_id`);"); + $this->execute("ALTER TABLE `Voiceplandestination` ADD INDEX `voiceplanzone_id` (`voiceplanzone_id`);"); + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + $this->execute("ALTER TABLE `Voiceplanzone` DROP INDEX `voiceplan_id`;"); + $this->execute("ALTER TABLE `Voiceplandestination` DROP INDEX `voiceplanzone_id`;"); + } + + if($this->getEnvironment() == "addressdb") { + + } + } +}