mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-22 15:13:59 -06:00
Set collation to utf8_bin in shortCode column of ShortUrl so that the UNIQUE key is case sensitive
This commit is contained in:
parent
95346ebb7e
commit
5c8353da02
@ -23,7 +23,14 @@ class ShortUrl extends AbstractEntity implements \JsonSerializable
|
||||
protected $originalUrl;
|
||||
/**
|
||||
* @var string
|
||||
* @ORM\Column(name="short_code", type="string", nullable=false, length=10, unique=true)
|
||||
* @ORM\Column(
|
||||
* name="short_code",
|
||||
* type="string",
|
||||
* nullable=false,
|
||||
* length=10,
|
||||
* unique=true,
|
||||
* options={"collation": "utf8_bin"}
|
||||
* )
|
||||
*/
|
||||
protected $shortCode;
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user