2017 © Pedro Peláez
 

contao-bundle contao-migration-bundle

Contao 4 migration project bundle

image

heimrichhannot/contao-migration-bundle

Contao 4 migration project bundle

  • Thursday, June 21, 2018
  • by digitales@heimrich-hannot.de
  • Repository
  • 6 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Contao Migration

A collection of various migration scripts., (*1)

Features

Requires

Commands

Use [command] --help to get more information., (*2)

Modules

Convert News Archive Menu to Filter Bundle

Usage:, (*3)

huh:migration:module:newsmenu [options]

Options:, (*4)

Option Description
-i, --ids[=IDS] Provide the id of a single module or a comma separated list of module ids that should be migrated.
-t, --types[=TYPES] What module types should be migrated? [default: ["newsmenu"]] (multiple values allowed)
--dry-run Performs a run without writing to database and copy templates.

Since: 0.4.0, (*5)

Usage:, (*6)

huh:migration:module:owlcarousel [options]

Options:, (*7)

Option Description
-i, --ids[=IDS] Provide the id of a single module or a comma separated list of module ids that should be migrated.
-t, --types[=TYPES] What module types should be migrated? [default: ["owl_newslist"]] (multiple values allowed)
--dry-run Performs a run without writing to database and copy templates.

Since: 0.2.0, (*8)

Convert News Plus modules to Filter/List/Readerbundle modules

Usage:, (*9)

huh:migration:module:newsplus [options]

Options:, (*10)

Option Description
--dry-run Performs a run without writing to database and copy templates.
-m, --module=MODULE Convert a single module instead of all modules.

Convert News Plus reader modules to Filter/Readerbundle modules

Migration of tl_module type:newsreader modules to huhreader and creates reader configurations from old tl_module settings., (*11)

Usage:, (*12)

migration:module:newsreader [options]

Options:, (*13)

Option Description
-i, --ids[=IDS] Provide the id of a single module or a comma separated list of module ids that should be migrated.
-t, --types[=TYPES] What module types should be migrated? [default: ["newsreader","newsreader_plus"]] (multiple values allowed)
--dry-run Performs a run without writing to database and copy templates.

Content elements

Convert Tabs to Tab Control Bundle

Supported source modules: * contao-legacy/fry_accessible_tabs, (*14)

Usage:, (*15)

huh:migration:ce:tab_control_bundle [options]

Options:, (*16)

Option Description
-i, --ids[=IDS] Provide the id of a single module or a comma separated list of module ids that should be migrated.
-t, --types[=TYPES] What content element types should be migrated? [default: ["owl_newslist"]] (multiple values allowed)
--dry-run Performs a run without writing to database and copy templates.

Since: 0.3.0, (*17)

Others

News Categories to Categories Bundle

Migration of database entries from news_categories module to heimrichhannot/contao-categories., (*18)

Usage:, (*19)

huh:migration:db:news_categories [<field>] [options]

Arguments:, (*20)

Argument Description
field What is the name of the category field in tl_news? [default: "categories"]

Options:, (*21)

Option Description
--category-ids Restrict the command to legacy news categories of certain IDs and their children [default: no restriction]
--news-archive-ids Restrict the command to news of certain archives [default: no restriction]
--primary-category-field Pass in the name of the source field in tl_news holding the ID of the primary category.

Move modules to block

Move given module into a block., (*22)

Usage:, (*23)

huh:migration:movetoblock [options] [--] <modules> (<modules>)...

Arguments:, (*24)

Argument Description
modules Ids of modules should migrated into a block.

Options:, (*25)

Option Description
-b, --block=BLOCK Set a block where module should be added to. If not set, a new block is created.
--ignore-types Don't set custom module settings for block module like !autoitem for reader module.
--dry-run Preview command without changing the database.
-t, --title=TITLE Set a block name for new blocks. If not set, name of first module will be used.
--no-replace Don't replace modules with block.

The Versions