diff --git a/db/migrations/20240416190300_add_voice_call_history_start_index.php b/db/migrations/20240416190300_add_voice_call_history_start_index.php index 94b68e050..ad11b0d15 100644 --- a/db/migrations/20240416190300_add_voice_call_history_start_index.php +++ b/db/migrations/20240416190300_add_voice_call_history_start_index.php @@ -7,13 +7,13 @@ final class AddVoiceCallHistoryStartIndex extends AbstractMigration { public function up(): void { if ($this->getEnvironment() == "thetool") { //VoiceCallHistory Table add start index - $this->table("VoiceCallHistory")->addIndex(["start"]); + $this->table("VoiceCallHistory")->addIndex(["start"])->save(); } } public function down(): void { if ($this->getEnvironment() == "thetool") { - $this->table("VoiceCallHistory")->removeIndex(["start"]); + $this->table("VoiceCallHistory")->removeIndex(["start"])->save(); } } }