From 4f8928cfe038278f22f3cfc17637475faf7bb80a Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Wed, 10 Apr 2024 15:25:44 +0200 Subject: [PATCH] [VoiceCallHistory] - fixed migration --- db/migrations/20240410150500_add_voice_call_history.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/migrations/20240410150500_add_voice_call_history.php b/db/migrations/20240410150500_add_voice_call_history.php index 86c205410..891227dc3 100644 --- a/db/migrations/20240410150500_add_voice_call_history.php +++ b/db/migrations/20240410150500_add_voice_call_history.php @@ -9,7 +9,7 @@ final class AddVoiceCallHistory extends AbstractMigration { //VoiceCallHistory Table $voiceCallHistoryTable = $this->table("VoiceCallHistory", ["signed" => true]); - $voiceCallHistoryTable->addColumn("uid", "string", ["null" => false, "limit" => 255, "unique" => true]); + $voiceCallHistoryTable->addColumn("uid", "string", ["null" => false, "limit" => 255]); $voiceCallHistoryTable->addColumn("voice_account", "string", ["null" => false, "limit" => 255]); $voiceCallHistoryTable->addColumn("start", "datetime", ["null" => false]); $voiceCallHistoryTable->addColumn("source", "string", ["null" => true, "limit" => 255]); @@ -21,6 +21,7 @@ final class AddVoiceCallHistory extends AbstractMigration { //VoiceCallHistory Table Indexes $voiceCallHistoryTable->addIndex(["billable"]); $voiceCallHistoryTable->addIndex(["voice_account"]); + $voiceCallHistoryTable->addIndex(["uid"], ["unique" => true]); $voiceCallHistoryTable->save();