This plugin provide PostgreSQL compatibility for Sylius
New version will be released for each Sylius release including a migration.
Please read Sylius upgrading guides.
-
Run
composer require adexos/sylius-postgre-compatibility-plugin
. -
Add PostgreCompatibilityPlugin to config/bundles.php.
return [
Adexos\SyliusPostgreCompatibilityPlugin\AdexosSyliusPostgreCompatibilityPlugin::class => ['all' => true],
];
- Unregister migrations namespace if needed
In config/packages/adexos_sylius_postgre_compatibility_plugin.yaml
adexos_sylius_postgre_compatibility_plugin:
excluded_migration_namespaces:
- Vendor\Namespace\Migrations
Then you can re-generate and apply migrations for PostgreSQL with these commands:
bin/console doctrine:migration:diff
bin/console doctrine:migration:migrate