diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-11-28 20:26:18 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-11-28 22:04:55 +0100 |
commit | 877787e5fe6a6545105616968939949b4db81347 (patch) | |
tree | dc7d2ecf643f9c28b75e4fdb5efc121dcafe3536 /src/Wallabag/ApiBundle/Entity/RefreshToken.php | |
parent | 9a8a1bdfdbc87047bffb457370e04ef58a24495c (diff) | |
download | wallabag-877787e5fe6a6545105616968939949b4db81347.tar.gz wallabag-877787e5fe6a6545105616968939949b4db81347.tar.zst wallabag-877787e5fe6a6545105616968939949b4db81347.zip |
Fix utf8mb4 on vendor tables
When creating the schema for test these tables use default length for
string: 255. Which fail when using utf8mb4.
> Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
Also move the `setKeepStaticConnections` in before and after class to
avoid:
> SAVEPOINT DOCTRINE2_SAVEPOINT_2 does not exist
See https://github.com/dmaicher/doctrine-test-bundle#troubleshooting
Diffstat (limited to 'src/Wallabag/ApiBundle/Entity/RefreshToken.php')
-rw-r--r-- | src/Wallabag/ApiBundle/Entity/RefreshToken.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Entity/RefreshToken.php b/src/Wallabag/ApiBundle/Entity/RefreshToken.php index 822a02d8..dd8e9c63 100644 --- a/src/Wallabag/ApiBundle/Entity/RefreshToken.php +++ b/src/Wallabag/ApiBundle/Entity/RefreshToken.php | |||
@@ -8,6 +8,22 @@ use FOS\OAuthServerBundle\Entity\RefreshToken as BaseRefreshToken; | |||
8 | /** | 8 | /** |
9 | * @ORM\Table("oauth2_refresh_tokens") | 9 | * @ORM\Table("oauth2_refresh_tokens") |
10 | * @ORM\Entity | 10 | * @ORM\Entity |
11 | * @ORM\AttributeOverrides({ | ||
12 | * @ORM\AttributeOverride(name="token", | ||
13 | * column=@ORM\Column( | ||
14 | * name = "token", | ||
15 | * type = "string", | ||
16 | * length = 191 | ||
17 | * ) | ||
18 | * ), | ||
19 | * @ORM\AttributeOverride(name="scope", | ||
20 | * column=@ORM\Column( | ||
21 | * name = "scope", | ||
22 | * type = "string", | ||
23 | * length = 191 | ||
24 | * ) | ||
25 | * ) | ||
26 | * }) | ||
11 | */ | 27 | */ |
12 | class RefreshToken extends BaseRefreshToken | 28 | class RefreshToken extends BaseRefreshToken |
13 | { | 29 | { |