in app/Services/Account/Settings/ExportAccount.php [56:126]
private function writeExport(array $data, User $user)
{
$sql = '# ************************************************************
# '.$user->first_name.' '.$user->last_name.' dump of data
# Export date: '.now().'
# How to use:
# * create a fresh database
# * run migrations (`php artisan migrate`)
# * import this sql file
# ************************************************************
SET FOREIGN_KEY_CHECKS=0;
'.PHP_EOL;
$this->writeToTempFile($sql);
$this->exportAccount($data);
$this->exportActivity($data);
$this->exportContact($data);
$this->exportActivityContact($data);
$this->exportActivityStatistic($data);
$this->exportActivityTypeCategory($data);
$this->exportActivityType($data);
$this->exportAddress($data);
$this->exportCall($data);
$this->exportCompany($data);
$this->exportContactFieldType($data);
$this->exportContactField($data);
$this->exportContactTag($data);
$this->exportContact($data);
$this->exportConversation($data);
$this->exportDays($data);
$this->exportDebt($data);
$this->exportDocument($data);
$this->exportEmotionCall($data);
$this->exportEntries($data);
$this->exportGender($data);
$this->exportGift($data);
$this->exportInvitation($data);
$this->exportJournalEntry($data);
$this->exportLifeEventCategory($data);
$this->exportLifeEventType($data);
$this->exportLifeEvent($data);
$this->exportMessage($data);
$this->exportMetaDataLoveRelationship($data);
$this->exportModule($data);
$this->exportNote($data);
$this->exportOccupation($data);
$this->exportPet($data);
$this->exportPhoto($data);
$this->exportPlace($data);
$this->exportRecoveryCode($data);
$this->exportRelationTypeGroup($data);
$this->exportRelationType($data);
$this->exportRelationship($data);
$this->exportReminderOutbox($data);
$this->exportReminderRule($data);
$this->exportReminderSent($data);
$this->exportReminder($data);
$this->exportSpecialDate($data);
$this->exportTag($data);
$this->exportTask($data);
$this->exportTermUser($data);
$this->exportUser($data);
$this->exportWeather($data);
$this->exportContactPhoto($data);
$this->exportAuditLogs($data);
$sql = 'SET FOREIGN_KEY_CHECKS=1;';
$this->writeToTempFile($sql);
}