You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I got an mysql error during migration process.
Syntax error or access violation: 1059
Cause by name of unique key being too long. reference source
A key name 'translator_translations_locale_namespace_group_item_unique' will be used automatically, whose length is 58.
And if database prefix is being used, it may violate the restriction of maximum length(64 characters).
Is it possible to just give it a specific short key name?
like $table->unique(['locale', 'namespace', 'group', 'item'], 'short_name');
The text was updated successfully, but these errors were encountered:
kroutony
changed the title
Mysql syntax error on migrate. code: 1059
Mysql syntax error during migration. code: 1059
Jul 23, 2019
Hi,
I got an mysql error during migration process.
Syntax error or access violation: 1059
Cause by name of unique key being too long.
reference source
A key name 'translator_translations_locale_namespace_group_item_unique' will be used automatically, whose length is 58.
And if database prefix is being used, it may violate the restriction of maximum length(64 characters).
Is it possible to just give it a specific short key name?
like
$table->unique(['locale', 'namespace', 'group', 'item'], 'short_name');
The text was updated successfully, but these errors were encountered: