File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Sylius \WishlistPlugin \Migrations ;
6+
7+ use Doctrine \DBAL \Schema \Schema ;
8+ use Doctrine \Migrations \AbstractMigration ;
9+
10+ final class Version20250429195905 extends AbstractMigration
11+ {
12+ public function getDescription (): string
13+ {
14+ return 'This migration renames indexes in sylius_wishlist and sylius_wishlist_product tables. ' ;
15+ }
16+
17+ public function up (Schema $ schema ): void
18+ {
19+ $ this ->addSql ('ALTER TABLE sylius_wishlist RENAME INDEX idx_578d4e77a45d93bf TO IDX_635A71DEA45D93BF ' );
20+ $ this ->addSql ('ALTER TABLE sylius_wishlist RENAME INDEX idx_578d4e7772f5a1aa TO IDX_635A71DE72F5A1AA ' );
21+ $ this ->addSql ('ALTER TABLE sylius_wishlist_product RENAME INDEX idx_3dbe67a0fb8e54cd TO IDX_8D0D7C6DFB8E54CD ' );
22+ $ this ->addSql ('ALTER TABLE sylius_wishlist_product RENAME INDEX idx_3dbe67a04584665a TO IDX_8D0D7C6D4584665A ' );
23+ $ this ->addSql ('ALTER TABLE sylius_wishlist_product RENAME INDEX idx_3dbe67a03b69a9af TO IDX_8D0D7C6D3B69A9AF ' );
24+ }
25+
26+ public function down (Schema $ schema ): void
27+ {
28+ $ this ->addSql ('ALTER TABLE sylius_wishlist RENAME INDEX idx_635a71dea45d93bf TO IDX_578D4E77A45D93BF ' );
29+ $ this ->addSql ('ALTER TABLE sylius_wishlist RENAME INDEX idx_635a71de72f5a1aa TO IDX_578D4E7772F5A1AA ' );
30+ $ this ->addSql ('ALTER TABLE sylius_wishlist_product RENAME INDEX idx_8d0d7c6d4584665a TO IDX_3DBE67A04584665A ' );
31+ $ this ->addSql ('ALTER TABLE sylius_wishlist_product RENAME INDEX idx_8d0d7c6d3b69a9af TO IDX_3DBE67A03B69A9AF ' );
32+ $ this ->addSql ('ALTER TABLE sylius_wishlist_product RENAME INDEX idx_8d0d7c6dfb8e54cd TO IDX_3DBE67A0FB8E54CD ' );
33+ }
34+ }
You can’t perform that action at this time.
0 commit comments