Fix index on MySQL
This commit is contained in:
parent
c579ce2306
commit
5cc0646e66
@ -24,7 +24,7 @@ class Version20190401105353 extends WallabagMigration
|
|||||||
'notnull' => false,
|
'notnull' => false,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$entryTable->addIndex(['user_id', 'hashed_url'], 'hashed_url_user_id');
|
$entryTable->addIndex(['user_id', 'hashed_url'], 'hashed_url_user_id', [], ['lengths' => [null, 40]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,7 +26,7 @@ use Wallabag\UserBundle\Entity\User;
|
|||||||
* indexes={
|
* indexes={
|
||||||
* @ORM\Index(name="created_at", columns={"created_at"}),
|
* @ORM\Index(name="created_at", columns={"created_at"}),
|
||||||
* @ORM\Index(name="uid", columns={"uid"}),
|
* @ORM\Index(name="uid", columns={"uid"}),
|
||||||
* @ORM\Index(name="hashed_url_user_id", columns={"user_id", "hashed_url"})
|
* @ORM\Index(name="hashed_url_user_id", columns={"user_id", "hashed_url"}, options={"lengths"={null, 40}})
|
||||||
* }
|
* }
|
||||||
* )
|
* )
|
||||||
* @ORM\HasLifecycleCallbacks()
|
* @ORM\HasLifecycleCallbacks()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user