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

Database creation fails due to primary key length limit on MySQL #27

Closed
juliusknorr opened this issue Oct 2, 2016 · 0 comments · Fixed by #29
Closed

Database creation fails due to primary key length limit on MySQL #27

juliusknorr opened this issue Oct 2, 2016 · 0 comments · Fixed by #29
Assignees

Comments

@juliusknorr
Copy link
Member

  [Doctrine\DBAL\Exception\DriverException]                                                                                            
  An exception occurred while executing 'CREATE TABLE `oc_spreedme_room_participants` (`userId` VARCHAR(256) NOT NULL, `roomId` VARCH  
  AR(256) NOT NULL, `lastPing` INT NOT NULL, PRIMARY KEY(`userId`)) DEFAULT CHARACTER SET utf8 COLLATE utf8_bin ENGINE = InnoDB':      
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes                      

  [Doctrine\DBAL\Driver\PDOException]                                                                              
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes  

  [PDOException]                                                                                                   
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes  
@juliusknorr juliusknorr added the bug label Oct 2, 2016
@juliusknorr juliusknorr changed the title Database creation fails due to index length limit on MySQL Database creation fails due to primary key length limit on MySQL Oct 2, 2016
@ChristophWurst ChristophWurst self-assigned this Oct 4, 2016
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

Successfully merging a pull request may close this issue.

2 participants