diff --git a/src/Migrations/Version20240823111615.php b/src/Migrations/Version20240823111615.php index 99ea871..412cb92 100644 --- a/src/Migrations/Version20240823111615.php +++ b/src/Migrations/Version20240823111615.php @@ -29,21 +29,17 @@ public function getDescription(): string public function up(Schema $schema): void { - $table = $schema->getTable('bundle_outputdataconfigtoolkit_outputdefinition'); - - $query = "ALTER TABLE `%s` CHANGE COLUMN `configuration` `configuration` LONGTEXT + $query = "ALTER TABLE `bundle_outputdataconfigtoolkit_outputdefinition` CHANGE COLUMN `configuration` `configuration` LONGTEXT CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_bin' NULL DEFAULT NULL;"; - $this->addSql(sprintf($query, $table->getName())); + $this->addSql($query); } public function down(Schema $schema): void { - $table = $schema->getTable('bundle_outputdataconfigtoolkit_outputdefinition'); - - $query = "ALTER TABLE `%s` CHANGE COLUMN `configuration` `configuration` LONGTEXT + $query = "ALTER TABLE `bundle_outputdataconfigtoolkit_outputdefinition` CHANGE COLUMN `configuration` `configuration` LONGTEXT CHARACTER SET 'latin1' NULL DEFAULT NULL;"; - $this->addSql(sprintf($query, $table->getName())); + $this->addSql($query); } }