[VoiceCallHistory]

- fixed migration
This commit is contained in:
Luca Haid
2024-04-10 15:24:08 +02:00
parent c36b0f07bf
commit 76a0f71a8e

View File

@@ -9,8 +9,7 @@ final class AddVoiceCallHistory extends AbstractMigration {
//VoiceCallHistory Table
$voiceCallHistoryTable = $this->table("VoiceCallHistory", ["signed" => true]);
$voiceCallHistoryTable->addColumn("id", "integer", ["identity" => true]);
$voiceCallHistoryTable->addColumn("uid", "string", ["null" => false, "limit" => 255]);
$voiceCallHistoryTable->addColumn("uid", "string", ["null" => false, "limit" => 255, "unique" => true]);
$voiceCallHistoryTable->addColumn("voice_account", "string", ["null" => false, "limit" => 255]);
$voiceCallHistoryTable->addColumn("start", "datetime", ["null" => false]);
$voiceCallHistoryTable->addColumn("source", "string", ["null" => true, "limit" => 255]);
@@ -27,7 +26,6 @@ final class AddVoiceCallHistory extends AbstractMigration {
//VoiceCallHistoryJob Table
$voiceCallHistoryJobTable = $this->table("VoiceCallHistoryJob", ["signed" => true]);
$voiceCallHistoryJobTable->addColumn("id", "integer", ["identity" => true]);
$voiceCallHistoryJobTable->addColumn("date", "date", ["null" => false]);
$voiceCallHistoryJobTable->addColumn("status", "enum", ["values" => ["created", "pending", "running", "success", "failed"], "default" => "created", "null" => false]);
$voiceCallHistoryJobTable->addColumn("finished", "date", ["null" => true]);