Skip to content

Commit 9ab9111

Browse files
committed
Add row_format=dynamic to ext_log_entries and ext_translations to avoid Index column size too large on MySQL < 5.7 (must be combined with innodb_large_prefix=on option in the MySQL server config) - fixes #1904
1 parent a43f57c commit 9ab9111

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/Gedmo/Loggable/Entity/LogEntry.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @ORM\Table(
1111
* name="ext_log_entries",
12+
* options={"row_format":"DYNAMIC"},
1213
* indexes={
1314
* @ORM\Index(name="log_class_lookup_idx", columns={"object_class"}),
1415
* @ORM\Index(name="log_date_lookup_idx", columns={"logged_at"}),

lib/Gedmo/Translatable/Entity/Translation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*
1313
* @Table(
1414
* name="ext_translations",
15+
* options={"row_format":"DYNAMIC"},
1516
* indexes={@Index(name="translations_lookup_idx", columns={
1617
* "locale", "object_class", "foreign_key"
1718
* })},

0 commit comments

Comments
 (0)