pagemachine / typo3-phinx
Phinx integration for TYPO3
Installs: 1 446
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ^7.2
- robmorgan/phinx: ^0.11 || ^0.12
- typo3/cms-core: ^9.5 || ^10.4
Requires (Dev)
- cakephp/cakephp-codesniffer: ^3.0
- ergebnis/composer-normalize: ^2.3
- php-parallel-lint/php-console-highlighter: ^0.4.0
- php-parallel-lint/php-parallel-lint: ^1.2
- phpstan/phpstan: ^0.12.38
- saschaegerer/phpstan-typo3: ^0.13.1
- slevomat/coding-standard: ^4.0
- squizlabs/php_codesniffer: ^3.1
This package is auto-updated.
Last update: 2021-01-28 14:38:10 UTC
README
This package provides a integration of the Phinx database migration tool for TYPO3.
All Phinx commands have been wrapped as phinx:<command>
and can be executed using the TYPO3 CLI or TYPO3 Console:
# Create a new migration
typo3cms phinx:create
# Migrate the database
typo3cms phinx:migrate
# Rollback the last or to a specific migration
typo3cms phinx:rollback
# Show migration status
typo3cms phinx:status
# Create a new database seeder
typo3cms phinx:seed:create
# Run database seeders
typo3cms phinx:seed:run
Notice that these wrapper commands are executed by TYPO3, thus the full API like DataHandler
can be used in migrations.
The following paths are used for migrations:
typo3conf/ext/*/Migrations/Phinx
typo3conf/ext/*/Classes/Migrations/Phinx
The following paths are used for seeds:
typo3conf/ext/*/Migrations/Phinx/Seeds
typo3conf/ext/*/Classes/Migrations/Phinx/Seeds
Testing
All tests can be executed with the shipped Docker Compose definition:
docker-compose run --rm app composer build