oxidio / doctrine-migration-wrapper
OXID eShop database migrations using doctrine
v2.1.3
2019-05-06 10:26 UTC
Requires
- php: >=5.6
- doctrine/migrations: ^1.4.1
- oxid-esales/oxideshop-facts: ^2.0.0
- symfony/console: *
Requires (Dev)
- mikey179/vfsstream: ~1.4.0
- phpunit/phpunit: ^4.8.26
- symfony/filesystem: ^3.2
Replaces
This package is auto-updated.
Last update: 2024-11-15 02:34:15 UTC
README
Current component allows to execute doctrine migration binary for active eShop edition and with database configured from the eShop installation itself. The following different logic is applied during the execution of different migration scripts suites within different eShop editions:
- Community edition migrations - executed always;
- Professional edition migrations - executed when eShop has Professional edition or Enterprise edition;
- Enterprise edition migrations - executed when eShop has Enterprise edition;
- Project specific migrations - executed always;
Keep in mind that the migration suite is executed only when it is able to find at least one migration script.
Recommended way to update your OXID eShop
vendor/bin/oe-eshop-db_migrate migrations:migrate
Possible ways to use
- Use composer command oe:migration:run to run exsting migrations.
- Use composer command oe:migration:new to generate new migration.
- Run bash script:
vendor/bin/oe-eshop-doctrine_migration
to run existing migrations. - Run bash script:
vendor/bin/oe-eshop-doctrine_migration
DOCTRINE_COMMAND to execute specific command. - Run PHP script
vendor/oxid-esales/migrate.php migrations:migrate
to run existing migrations. - Run PHP script
vendor/oxid-esales/migrate.php
DOCTRINE_COMMAND to execute specific command. - Use class
Migrations
orMigrationsBuilder
Bugs and Issues
If you experience any bugs or issues, please report them in the section OXID eShop (all versions) of https://bugs.oxid-esales.com.