An exception occurred while executing 'CREATE TABLE doctrine_migration_versions (version VARCHAR(1024) NOT NULL, executed_at DATETIME DEFAULT NULL, execution_time INT DEFAULT NULL, PRIMARY KEY(version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB': SQLSTATE[42000]: Synta...
I've got the following error SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes while try to use the orm:schema-tool:update --force command. Current behavior I've get an SQL error on CREATE TABLE SQLSTATE[42000]: Syntax err...
symfony doctrine-orm 2个回答 6投票 关注@A.L.想法,我最终得到了这段代码。该解决方案主要使用 PHP,并且可以使用 Doctrine Migration 来完成。 <?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Auto-...