Skip to content

Commit

Permalink
121 Removed unnecessary getTable
Browse files Browse the repository at this point in the history
  • Loading branch information
mcop1 committed Aug 23, 2024
1 parent fbefc28 commit 6c208e3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Migrations/Version20240823111615.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 6c208e3

Please sign in to comment.