Skip to content

Commit

Permalink
fix: system config insert
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored Apr 15, 2024
1 parent be4365b commit 56c8f75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/Services/OneTimeTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Shopware\Deployment\Config\ProjectConfiguration;
use Shopware\Deployment\Helper\ProcessHelper;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\Attribute\Autowire;

class OneTimeTasks
{
Expand Down
3 changes: 1 addition & 2 deletions src/Services/ShopwareState.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public function setVersion(string $version): void
if ($id) {
$this->connection->executeStatement('UPDATE system_config SET configuration_value = ? WHERE id = ?', [$payload, $id]);
} else {
$uuid = md5('deployment_version');
$this->connection->executeStatement('INSERT INTO system_config (id, configuration_key, configuration_value, sales_channel_id, created_at) VALUES (?, "deployment.version", ?, NULL, NOW())', [$uuid, $payload]);
$this->connection->executeStatement('INSERT INTO system_config (id, configuration_key, configuration_value, sales_channel_id, created_at) VALUES (0x0353f2502acd5dbdfe797c1cc4af9afc, "deployment.version", ?, NULL, NOW())', [$payload]);
}
}

Expand Down

0 comments on commit 56c8f75

Please sign in to comment.