connection->getDatabasePlatform()->getName(); $table = $schema->getTable('short_urls'); $column = $table->getColumn('short_code'); if ($db === self::MYSQL) { $column->setPlatformOption('collation', 'utf8_bin'); } elseif ($db === self::SQLITE) { $column->setPlatformOption('collate', 'BINARY'); } } /** * @throws Exception */ public function down(Schema $schema): void { $db = $this->connection->getDatabasePlatform()->getName(); } /** * @fixme Workaround for https://github.com/doctrine/migrations/issues/1104 */ public function isTransactional(): bool { return false; } }