[VoiceCallHistory]

- fixed migration
This commit is contained in:
Luca Haid
2024-04-10 15:20:59 +02:00
parent b42409874b
commit c36b0f07bf

View File

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