Skip to content

TYPO3 Extension: Phinx.org integration for Database Migrations

Notifications You must be signed in to change notification settings

koninklijke-collective/koning_phinx

Repository files navigation

TYPO3 Extension: Phinx Integration

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

Releases

No releases published

Packages

No packages published

Languages