3 namespace Drupal\redirect;
5 use Drupal\Core\Entity\ContentEntityTypeInterface;
6 use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema;
9 * Defines the redirect schema.
11 class RedirectStorageSchema extends SqlContentEntityStorageSchema {
16 protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) {
17 $schema = parent::getEntitySchema($entity_type, $reset);
20 $schema['redirect']['unique keys'] += [
23 $schema['redirect']['indexes'] += [
24 // Limit length to 191.
25 'source_language' => [['redirect_source__path', 191], 'language'],