return 1585816139;
} public function update(Connection
$connection): void
{ $categoryProfileId =
$connection->
executeQuery( 'SELECT `id` FROM `import_export_profile` WHERE `name` = :name AND `system_default` = 1 AND source_entity = "category"',
['name' => 'Default category'
] )->
fetchOne();
if ($categoryProfileId) { $mapping =
$this->
getCategoryMapping();
$connection->
update('import_export_profile',
['mapping' =>
json_encode($mapping, \JSON_THROW_ON_ERROR
)],
['id' =>
$categoryProfileId]);
} $mediaProfileId =
$connection->
executeQuery( 'SELECT `id` FROM `import_export_profile` WHERE `name` = :name AND `system_default` = 1 AND source_entity = "media"',
['name' => 'Default media'
] )->
fetchOne();
if ($mediaProfileId) { $mapping =
$this->
getMediaMapping();
$connection->
update('import_export_profile',
['mapping' =>
json_encode($mapping, \JSON_THROW_ON_ERROR
)],
['id' =>
$mediaProfileId]);
}