Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MyISAM doctrine:schema:update error #338

Open
mydoctool opened this issue Oct 17, 2018 · 0 comments
Open

MyISAM doctrine:schema:update error #338

mydoctool opened this issue Oct 17, 2018 · 0 comments

Comments

@mydoctool
Copy link

mydoctool commented Oct 17, 2018

In test env I use MyISAM tables (for best performance).

After the command "php bin/console doctrine:schema:update -f --nv=test" I have error

` An exception occurred while executing 'CREATE TABLE lexik_trans_unit (id INT AUTO_INCREMENT NOT NULL, key_name VARCHAR(255) NOT NULL, domain VARCHAR(255) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAU
LT NULL, UNIQUE INDEX key_domain_idx (key_name, domain), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE = MyISAM':

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes `

Symfony 3.4.14
php 7.2
mysql 5.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant