Merge branch '1-add-voiceplan-history' into 'master'
[VoiceCallHistory] - fixed migration See merge request fronk/thetool!317
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user