Skip to content

Commit 6ac0e2b

Browse files
committed
fix: update seo url template entity name
1 parent b7f1fb8 commit 6ac0e2b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace Werkl\OpenBlogware\Migration;
5+
6+
use Doctrine\DBAL\Connection;
7+
use Shopware\Core\Framework\Migration\MigrationStep;
8+
9+
class Migration1756141645UpdateSeoUrlTemplate extends MigrationStep
10+
{
11+
public function getCreationTimestamp(): int
12+
{
13+
return 1756141645;
14+
}
15+
16+
public function update(Connection $connection): void
17+
{
18+
$connection->executeQuery(
19+
<<<SQL
20+
UPDATE `seo_url_template`
21+
SET `entity_name` = 'werkl_blog_entry'
22+
WHERE `entity_name` = 'werkl_blog_entries'
23+
SQL
24+
);
25+
}
26+
}

0 commit comments

Comments
 (0)