Skip to content

Commit 185d1f3

Browse files
committed
Fix fa_sitemap table object_id charset to fit other shop tables ids
Signed-off-by: Anton Fedurtsya <[email protected]>
1 parent 7392662 commit 185d1f3

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212

1313
### Fixed
1414
- Use correct module id during module activation migrations
15+
- Fix fa_sitemap table object_id charset to fit other shop tables ids
1516

1617
## [v0.1.0] - 2024-02-10
1718

migration/data/Version20231011192842.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ final class Version20231011192842 extends AbstractMigration
1111
{
1212
public function getDescription(): string
1313
{
14-
return '';
14+
return 'Create sitemap urls table';
1515
}
1616

1717
public function up(Schema $schema): void
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace FreshAdvance\Sitemap\Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
final class Version20240229211655 extends AbstractMigration
11+
{
12+
public function getDescription(): string
13+
{
14+
return 'Update object id field type to fit other shop tables';
15+
}
16+
17+
public function up(Schema $schema): void
18+
{
19+
$this->addSql(
20+
"ALTER TABLE fa_sitemap
21+
MODIFY COLUMN object_id VARCHAR(32) CHARACTER SET latin1 collate latin1_general_ci NOT NULL"
22+
);
23+
}
24+
25+
public function down(Schema $schema): void
26+
{
27+
// this down() migration is auto-generated, please modify it to your needs
28+
}
29+
}

0 commit comments

Comments
 (0)