diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-08-08 16:40:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 16:40:59 +0200 |
commit | 5d08dd2799a2c20509c0450181990898c62752fd (patch) | |
tree | b4d89e082942e4711b0e0aa1b02102ae3af21a3b /src/Wallabag/CoreBundle/Entity/InternalSetting.php | |
parent | 97c678a0b26d748f9829d732910d5c402c609dc2 (diff) | |
parent | 1576905e0357ef96cd852ea3c1ff4216af195c34 (diff) | |
download | wallabag-5d08dd2799a2c20509c0450181990898c62752fd.tar.gz wallabag-5d08dd2799a2c20509c0450181990898c62752fd.tar.zst wallabag-5d08dd2799a2c20509c0450181990898c62752fd.zip |
Merge pull request #4084 from wallabag/feature/internal-setting
Rename internal settings table
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/InternalSetting.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/InternalSetting.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/InternalSetting.php b/src/Wallabag/CoreBundle/Entity/InternalSetting.php new file mode 100644 index 00000000..df8bd3be --- /dev/null +++ b/src/Wallabag/CoreBundle/Entity/InternalSetting.php | |||
@@ -0,0 +1,36 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\Entity; | ||
4 | |||
5 | use Craue\ConfigBundle\Entity\BaseSetting; | ||
6 | use Doctrine\ORM\Mapping as ORM; | ||
7 | |||
8 | /** | ||
9 | * InternalSetting. | ||
10 | * | ||
11 | * Re-define setting so we can override length attribute to fix utf8mb4 issue. | ||
12 | * | ||
13 | * @ORM\Entity(repositoryClass="Craue\ConfigBundle\Repository\SettingRepository") | ||
14 | * @ORM\Table(name="`internal_setting`") | ||
15 | * @ORM\AttributeOverrides({ | ||
16 | * @ORM\AttributeOverride(name="name", | ||
17 | * column=@ORM\Column( | ||
18 | * length = 191 | ||
19 | * ) | ||
20 | * ), | ||
21 | * @ORM\AttributeOverride(name="section", | ||
22 | * column=@ORM\Column( | ||
23 | * length = 191 | ||
24 | * ) | ||
25 | * ) | ||
26 | * }) | ||
27 | */ | ||
28 | class InternalSetting extends BaseSetting | ||
29 | { | ||
30 | /** | ||
31 | * @var string|null | ||
32 | * | ||
33 | * @ORM\Column(name="value", type="string", nullable=true, length=191) | ||
34 | */ | ||
35 | protected $value; | ||
36 | } | ||