File tree 3 files changed +31
-1
lines changed 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
12
12
13
13
### Fixed
14
14
- Use correct module id during module activation migrations
15
+ - Fix fa_sitemap table object_id charset to fit other shop tables ids
15
16
16
17
## [ v0.1.0] - 2024-02-10
17
18
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ final class Version20231011192842 extends AbstractMigration
11
11
{
12
12
public function getDescription (): string
13
13
{
14
- return '' ;
14
+ return 'Create sitemap urls table ' ;
15
15
}
16
16
17
17
public function up (Schema $ schema ): void
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments