LogStorageSchema.php in Commerce Core 8.2
File
modules/log/src/LogStorageSchema.php
View source
<?php
namespace Drupal\commerce_log;
use Drupal\Core\Entity\ContentEntityTypeInterface;
use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema;
class LogStorageSchema extends SqlContentEntityStorageSchema {
protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) {
$schema = parent::getEntitySchema($entity_type, $reset);
$schema[$this->storage
->getBaseTable()]['indexes'] += [
'source_entity' => [
'source_entity_id',
'source_entity_type',
],
];
return $schema;
}
}