Skip to content

Commit a763448

Browse files
committed
Add upgrade.md
1 parent e6dab13 commit a763448

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

UPGRADE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Upgrade plugin guide
2+
3+
## Upgrade from version v1.x to v2.x
4+
5+
The v2 is now compatible with Sylius 2.x, so you need to update your Sylius version to 2.x before upgrading the plugin. Some changes not listed here may be required, so please refer to the Sylius 2.x upgrade guide for more details.
6+
7+
- The route `@WebgriffeSyliusTableRateShippingPlugin/Resources/config/config.yml` has been renamed to `@WebgriffeSyliusTableRateShippingPlugin/config/config.yaml`.
8+
- The route `@WebgriffeSyliusTableRateShippingPlugin/Resources/config/admin_routing.yml` has been renamed to `@WebgriffeSyliusTableRateShippingPlugin/config/routes/admin.yaml`.
9+
- The route `webgriffe_sylius_table_rate_shipping_plugin_shop` has been removed as it was unnecessary
10+
- The migrations are now stored inside the plugin in `src/Migrations`. Your application will probably detect these but you probably already have your own migration with the same changes. So
11+
- For [Version20250923083844.php](src/Migrations/Version20250923083844.php) you should add this to your migration table by running the following command:
12+
13+
```bash
14+
bin/console doctrine:query:sql "INSERT INTO sylius_migrations VALUES ('Webgriffe\\\SyliusTableRateShippingPlugin\\\Migrations\\\Version20250923083844', '2026-02-18 11:30:00', 1)"
15+
```
16+
17+
You must remove the same changes made by this migration from your own migration if you want, but it is not required as the changes are the same and will not cause any issues if executed twice.
18+
- For [Version20260218113714.php](src/Migrations/Version20260218113714.php) you should do nothing as it must be detected by doctrine migrations and executed when running the migrate command.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
webgriffe_sylius_table_rate_shipping_plugin_admina:
1+
webgriffe_sylius_table_rate_shipping_plugin_admin:
22
resource: "@WebgriffeSyliusTableRateShippingPlugin/config/routes/admin.yaml"
33
prefix: /admin

0 commit comments

Comments
 (0)