[VoiceCallHistory]

- fixed migration
This commit is contained in:
Luca Haid
2024-04-10 15:25:44 +02:00
parent 76a0f71a8e
commit 4f8928cfe0

View File

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