Skip to content

Commit

Permalink
Generated migrations do not work #196
Browse files Browse the repository at this point in the history
  • Loading branch information
ctippler committed Jan 12, 2024
1 parent 8cce47a commit 0a1ef94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Command/MigrationGeneratorCommand.php
Expand Up @@ -59,16 +59,18 @@ public function getDescription(): string
public function up(Schema $schema): void
{
$db = \Pimcore\Db::get();
$configurationData = \Pimcore\Db\Helper::quoteDataIdentifiers($db,$this->configurationData);
if(Configuration::getById($this->configurationData[\'id\'])) {
$db->update(
ElementsProcessManagerBundle::TABLE_NAME_CONFIGURATION,
$this->configurationData,
$configurationData,
[\'id\' => $this->configurationData[\'id\']]
);
}else{
$db->insert(
ElementsProcessManagerBundle::TABLE_NAME_CONFIGURATION,
$this->configurationData
$configurationData
);
}
}
Expand Down

0 comments on commit 0a1ef94

Please sign in to comment.