From 76a0f71a8efba534c5dd2df74a6b1f7e85e0ff43 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Wed, 10 Apr 2024 15:24:08 +0200 Subject: [PATCH] [VoiceCallHistory] - fixed migration --- db/migrations/20240410150500_add_voice_call_history.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/db/migrations/20240410150500_add_voice_call_history.php b/db/migrations/20240410150500_add_voice_call_history.php index bd15491eb..86c205410 100644 --- a/db/migrations/20240410150500_add_voice_call_history.php +++ b/db/migrations/20240410150500_add_voice_call_history.php @@ -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]);