koninklijke-collective / koning-phinx
TYPO3 Extension: Phinx Integration - Phinx.org integration for Database Migrations
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 2
Type:typo3-cms-extension
Requires
- robmorgan/phinx: ^0.12.0
- typo3/cms-core: >=10.4.2,<11.0
This package is not auto-updated.
Last update: 2024-12-08 02:59:18 UTC
README
- Description: Phinx.org integration for Database Migrations
- Extension key: koning_phinx
- TER: http://typo3.org/extensions/repository/view/koning_phinx
Howto
Configure the extension as you would like; like example below:
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['koning_phinx'] = [ // Define paths outside PATH_site root 'path_migrations' => '../database/migrations', 'path_seeds' => '../database/seeds', // Enable extension migrations/seeds:Careful, this enables extension migrations! All enabled extensions with EXT:extension/Phinx/{Migrations,Seeds} directories. 'include_extension_directories' => true, ];
Usage
You can use all the Phinx features with the following command;
# Get all options php typo3/cli_dispatch.phpsh koning_phinx list # Invoke migrations php typo3/cli_dispatch.phpsh koning_phinx migrate # Create migration php typo3/cli_dispatch.phpsh koning_phinx create SpecifyYourSpecificChangeAsTitle # Display status of all migrations php typo3/cli_dispatch.phpsh koning_phinx status # Invoke seeds php typo3/cli_dispatch.phpsh koning_phinx seed:run # Create seed php typo3/cli_dispatch.phpsh koning_phinx seed:create YourSeedTitle