diff --git a/db/migrations/20240410150500_add_voice_call_history.php b/db/migrations/20240410150500_add_voice_call_history.php index 16a2864f7..bd15491eb 100644 --- a/db/migrations/20240410150500_add_voice_call_history.php +++ b/db/migrations/20240410150500_add_voice_call_history.php @@ -23,6 +23,8 @@ final class AddVoiceCallHistory extends AbstractMigration { $voiceCallHistoryTable->addIndex(["billable"]); $voiceCallHistoryTable->addIndex(["voice_account"]); + $voiceCallHistoryTable->save(); + //VoiceCallHistoryJob Table $voiceCallHistoryJobTable = $this->table("VoiceCallHistoryJob", ["signed" => true]); $voiceCallHistoryJobTable->addColumn("id", "integer", ["identity" => true]); @@ -30,6 +32,8 @@ final class AddVoiceCallHistory extends AbstractMigration { $voiceCallHistoryJobTable->addColumn("status", "enum", ["values" => ["created", "pending", "running", "success", "failed"], "default" => "created", "null" => false]); $voiceCallHistoryJobTable->addColumn("finished", "date", ["null" => true]); $voiceCallHistoryJobTable->addIndex(["date"], ["unique" => true]); + + $voiceCallHistoryJobTable->save(); } }