koninklijke-collective/koning-phinx

TYPO3 扩展:Phinx Integration - 数据迁移的 Phinx.org 集成

安装: 18

依赖项: 0

建议者: 0

安全性: 0

星标: 1

关注者: 2

分支: 0

开放问题: 2

类型:typo3-cms-extension

dev-master 2020-05-15 09:09 UTC

This package is not auto-updated.

Last update: 2024-09-15 01:37:33 UTC


README

如何使用

根据需要配置扩展;例如以下示例

    $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,
    ];

用法

您可以使用以下命令使用 Phinx 的所有功能;

    # 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