shopsys / migrations
Symfony bundle providing commands for transactional Doctrine database migrations
Requires
- php: ^8.3
- doctrine/dbal: ^3.8.5
- doctrine/doctrine-migrations-bundle: ^3.2.2
- doctrine/migrations: ^3.4.1
- doctrine/orm: ^2.5
- jdorn/sql-formatter: ^1.2
- psr/log: ^1.0
- symfony/config: ^5.4
- symfony/console: ^5.4
- symfony/dependency-injection: ^5.4
- symfony/filesystem: ^5.4
- symfony/framework-bundle: ^5.4
- symfony/http-kernel: ^5.4
- symfony/templating: ^5.4
- symfony/yaml: ^5.4
Requires (Dev)
- phpunit/phpunit: ^11.2.1
- 16.0.x-dev
- 15.0.x-dev
- v15.0.0
- 14.0.x-dev
- v14.0.1
- v14.0.0
- 13.0.x-dev
- v13.0.0
- 12.1.x-dev
- 12.0.x-dev
- v12.0.0
- v11.1.0
- dev-master / 11.0.x-dev
- v11.0.0
- 10.0.x-dev
- v10.0.5
- v10.0.4
- v10.0.3
- v10.0.2
- v10.0.1
- v10.0.0
- 9.1.x-dev
- v9.1.3
- v9.1.2
- v9.1.1
- v9.1.0
- 9.0.x-dev
- v9.0.4
- v9.0.3
- v9.0.2
- v9.0.1
- v9.0.0
- 8.1.x-dev
- v8.1.2
- v8.1.1
- v8.1.0
- 8.0.x-dev
- v8.0.0
- 7.3.x-dev
- v7.3.7
- v7.3.6
- v7.3.5
- v7.3.4
- v7.3.3
- v7.3.2
- v7.3.1
- v7.3.0
- 7.2.x-dev
- v7.2.2
- v7.2.1
- v7.2.0
- 7.1.x-dev
- v7.1.1
- v7.1.0
- 7.0.x-dev
- v7.0.1
- v7.0.0
- v7.0.0-beta6
- v7.0.0-beta5
- v7.0.0-beta4
- v7.0.0-beta3
- v7.0.0-beta2
- v7.0.0-beta1
- v7.0.0-alpha6
- v7.0.0-alpha5
- v7.0.0-alpha4
- v7.0.0-alpha3
- v7.0.0-alpha2
- v7.0.0-alpha1
- v2.3.0
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0.0
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.0
- dev-alpha
- dev-rv-stocks
- dev-tl-convertim-backend
- dev-tl-fix-nonexisting-class-framework
- dev-pt-yaml-standards-vol-2
- dev-rc-12-0-0
- dev-tl-fix-failing-12-0-builds
- dev-mg-js-translations-fix
- dev-mg-split-repo
- dev-rc-11-1-0
- dev-mg-deployment
- dev-mg-project-cold-fusion
- dev-mg-remove-manifests
- dev-tl-fix-project-base
- dev-rc-11-0-0
- dev-rc-10-0-5
- dev-rk-fw-uprage-from-10-to-11-part-3
- dev-rc-v9-1-3
- dev-rk-fw-1019-api-query-name-in-symfony-profiler
- dev-rk-fw-uprage-from-10-to-11-part-2
- dev-rc-10-0-4
- dev-rc-10-0-3
- dev-rc-10-0-2
- dev-rc-10-0-1
- dev-mg-fw-933-remove-rootdir
- dev-mg-release-lock
- dev-mg-remove-twig-extension
- dev-rk-fw-uprage-from-10-to-11-part-1
- dev-rc-10-0-0
- dev-mg-upgrade-php8
- dev-mg-remove-be-api-integration
- dev-rv-fw-847-migrations-tests
- dev-rv-fw-837-doctrine-upgrade
- dev-mg-improve-entity-extension
- dev-rv-fw-810-fix-actions
- dev-rc-v9-1-2
- dev-rc-v7-3-7
- dev-mg-allow-dependency
- dev-mg-fix-phpstan-packages
- dev-mg-force-proxy-manager-version
- dev-mg-update-node
- dev-origin/tl-phpstan-all-packages
- dev-tl-release-9-1-1
- dev-tl-remove-package-builder
- dev-ds-coding-standards-allow-symfony-5-higher
- dev-tl-github-actions-for-packages
- dev-ds-fix-ecs
- dev-mg-update-helios-elfinder
- dev-tp-allow-coding-standards-for-symfony5
- dev-rc-v9-1-0
- dev-rc-v7-3-6
- dev-rc-v9-0-4
- dev-mg-php74-only
- dev-tl-fix-docker-limits
- dev-rc-v9-0-3
- dev-ds-more-coding-standards
- dev-rc-v7-3-5
- dev-ds-ecs-path-fix
- dev-rc-v9-0-2
- dev-ds-eof-new-line
- dev-ds-phpstan-lvl-5
- dev-tl-fix-phpstan
- dev-rc-v9-0-1
- dev-tl-add-psr-14
- dev-ds-fixed-framework-standaards
- dev-rc-v7-3-4
- dev-rc-v8-1-2
- dev-rc-v9-0-0
- dev-tl-fix-current-customer-user
- dev-tp-js-fixes
- dev-vitek-rostislav-patch-3
- dev-tg-grunt-webpack
- dev-tp-symfony4
- dev-rv-eur-on-first-domain
- dev-rc-v7-3-3
- dev-tp-update-composer
- dev-ds-easier-elastic-extensebility
- dev-rc-v8-1-1
- dev-rc-v8-1-0
- dev-tp-npm-link
- dev-mg-weird-flex-but-ok
- dev-ds-fix-project-base-dependency
- dev-ds-fix-sed-macos
- dev-mg-graphql-categories
- dev-ds-kubernetes-simplify
- dev-tl-rv-datafixtures-refactoring
- dev-ds-kubernetes-simplify-test
- dev-rv-extended-classes-fixer
- dev-rv-phpstan-lvl4
- dev-ds-test-install-script-automatically
- dev-rc-8-0-0
- dev-ss-api-import-products
- dev-do-version-lock
- dev-rc-v7-3-0
- dev-ss-api-separated-from-default-project-base
- dev-do-elastic-structure-deploy
- dev-mg-fix-k8s-https
- dev-ph-price-calculation
- dev-ph-redis-clients
- dev-tl-fix-tests-bc-break
- dev-tl-removed-tests-bc-break
- dev-tl-united-non-bc-break-service-injections
- dev-ss-tl-api-products
- dev-ph-phing-test
- dev-tl-end-support-php-71
- dev-bb-multidomain-sitemap
- dev-do-mg-mail-attachments
- dev-bb-initcontainer-owner-fix
- dev-bb-flysystem-volume-driver
- dev-do-phpstan-upgrade
- dev-rv-read-model-bck
- dev-jg-redis-cache
- dev-mg-elastic-filtering
- dev-rv-upgrade-ecs
- dev-bb-ecs-hotfix
- dev-jg-form-ordering
- dev-rv-better-php-doc-parser-config
- dev-do-fixtures-project-base
- dev-mg-multiple-cron
- dev-sspooky13-pt-yaml-standards
- dev-mc-cdn-bucket
- dev-do-product-export-fix
- dev-mc-ph-google-cloud-bundle
This package is auto-updated.
Last update: 2024-11-15 10:04:49 UTC
README
This bundle provides commands which can be useful for database migrations:
shopsys:migrations:check-mapping
checks if ORM mapping is valid.shopsys:migrations:check-schema
checks if database schema is satisfying ORM.shopsys:migrations:count
returns count of migrations to execute.shopsys:migrations:migrate
executes all database migrations in one transaction.- the command supports installing migrations from multiple sources, so every bundle can have its own migrations
- it creates a
migration-lock.yml
file in the project's root, persisting the order of execution - migrations can be manually reordered or skipped if necessary
shopsys:migrations:generate
generates database migrations if the schema was changed- the command does not generate migrations that break backwards compatibility - eg. column dropping
- prompts you to choose the location for migration file if you are developing more than one bundle
This bundle uses DoctrineMigrationsBundle, so you have to install both.
This repository is maintained by shopsys/shopsys monorepo, information about changes is in monorepo CHANGELOG.md.
To be able to use this bundle, you need to do following:
-
Require
shopsys/migrations
incomposer.json
-
Register bundles in your
AppKernel.php
:new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), new Shopsys\MigrationBundle\ShopsysMigrationBundle(),
-
Configure
DoctrineMigrationsBundle
according to its documentation (see https://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html#configuration)
Contributing
Thank you for your contributions to Shopsys Migrations package. Together we are making Shopsys Platform better.
This repository is READ-ONLY. If you want to report issues and/or send pull requests, please use the main Shopsys repository.
Please, check our Contribution Guide before contributing.
Support
What to do when you are in troubles or need some help? The best way is to join our Slack.
If you want to report issues, please use the main Shopsys repository.