Created index on visits.date column

This commit is contained in:
Alejandro Celaya
2020-05-03 19:15:26 +02:00
parent 74ad3553cb
commit 867659ea25
2 changed files with 29 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ return static function (ClassMetadata $metadata, array $emConfig): void {
->columnName('`date`')
->build();
$builder->addIndex(['date'], 'IDX_visits_date');
$builder->createField('remoteAddr', Types::STRING)
->columnName('remote_addr')
->length(Visitor::REMOTE_ADDRESS_MAX_LENGTH)