-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: association field in media default folder config
- Loading branch information
1 parent
7479a40
commit 9abbf5a
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace SptecOrderComments\Migration; | ||
|
||
use Doctrine\DBAL\Connection; | ||
use Shopware\Core\Defaults; | ||
use Shopware\Core\Framework\Migration\MigrationStep; | ||
|
||
class Migration1683477576 extends MigrationStep | ||
{ | ||
public function getCreationTimestamp(): int | ||
{ | ||
return 1683477576; | ||
} | ||
|
||
public function update(Connection $connection): void | ||
{ | ||
$query = <<<SQL | ||
UPDATE `media_default_folder` SET `association_fields` = :associationFields WHERE `entity` = :entity; | ||
SQL; | ||
|
||
$connection->executeStatement($query, [ | ||
'associationFields' => '["sptecOrderComments"]', | ||
'entity' => 'sptec_order_comment', | ||
]); | ||
} | ||
|
||
public function updateDestructive(Connection $connection): void | ||
{ | ||
} | ||
} |