Skip to content

Commit aac9b35

Browse files
authored
Reduced value of version_column_length to avoid "Specified key was too long" error
When running with `version_column_length` at `1024` I received errors like: > An exception occurred while executing 'ALTER TABLE migration_versions CHANGE version version VARCHAR(1024) NOT NULL': > SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 3072 bytes Changing it to a lower value solved this problem. Ref: doctrine/migrations#958
1 parent 62aae8d commit aac9b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ application:
6565
table_storage:
6666
table_name: 'doctrine_migration_versions'
6767
version_column_name: 'version'
68-
version_column_length: 1024
68+
version_column_length: 192
6969
executed_at_column_name: 'executed_at'
7070
7171
# Possible values: "BY_YEAR", "BY_YEAR_AND_MONTH", false

0 commit comments

Comments
 (0)