[VoiceCallHistory]
- fixed migration
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user