Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Migration step types

Every step type of YAML migrations with its modes, keys, reference values and an example.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/migration-steps/README.md

Migration step types

Every step type of YAML migrations the kernel registers in settings/migration.ini [StepSettings] StepTypeList, one page each, made from the type's schema: its modes, keys, the values references: can take, whether it undoes itself, the caches it touches and an example. An extension registers its own types the same way (how).

Step typeModesWhat it does
referenceSets references (${ref.<name>}) for the steps and migrations after it in the run
assertFails the migration when a condition is false
contentcreate, update, ensure, deleteCreates, updates, ensures or deletes a content object, with its fields in one or more languages
locationcreate, update, delete, move, copy, hide, unhideAdds, changes, removes, moves, copies, hides or shows a location (node) of a content object
content_versionrestore, cleanupRestores an earlier version of a content object or removes its old versions
content_classcreate, update, ensure, deleteCreates, updates, ensures or deletes a content class with its attributes, their datatype settings and the translations of their names
content_class_groupcreate, update, ensure, deleteCreates, renames, ensures or deletes a group of content classes
usercreate, update, ensure, deleteCreates, updates, ensures or deletes a user account with its groups, password and fields
user_groupcreate, update, ensure, deleteCreates, updates, ensures or deletes a user group, with its name and description in one or more languages
rolecreate, update, ensure, delete, assign, unassignCreates, updates, ensures or deletes a role with its policies and limitations, or assigns it to users and user groups or takes it from them
sectioncreate, update, ensure, delete, assignCreates, updates, ensures or deletes a section, or assigns a section to a part of the content tree
languagecreate, update, ensure, deleteAdds, renames, ensures or removes a language of content
object_state_groupcreate, update, ensure, deleteCreates, updates, ensures or deletes an object state group with its states and the translations of their names
tagcreate, update, ensure, delete, move, mergeCreates, updates, ensures, deletes, moves or merges a tag of eztags, with its translations and synonyms
url_aliascreate, ensure, deleteCreates, ensures or deletes a custom URL alias of a node, a global URL alias or a URL wildcard
trashmove, restore, purgeMoves content to the trash, restores it from the trash, or purges it for good
fileAttaches a file of the migrations folder to a file attribute (ezbinaryfile, ezmedia) of an object
imagePuts an image of the migrations folder into an image attribute of an object, with its alternative text, focal point and crop rectangle
cacheClears caches of ezcache by id or tag and the view caches of single objects, at once or after the run
searchreindex, fullReindexes objects in the search engine (the ones named or the ones the run changed), or every object
autoloadRegenerates the autoload array of the extensions or of the kernel classes extensions replace
layoutcreate, update, ensure, deleteCreates, updates, ensures or deletes a layout of Exponential Layouts with its zones and their links to shared layouts
layout_blockcreate, update, ensure, deleteCreates, updates, ensures or deletes a block in a zone of a layout of Exponential Layouts, with its parameters
layout_rulecreate, update, ensure, deleteCreates, updates, ensures or deletes a rule of Exponential Layouts that maps pages to a layout
httpSends one HTTP request to another system, with secrets by name and an optional signature, and keeps the answer for references
mailSends one e-mail through the mail transport of the installation
commandRuns one exp:* console command of the installation that migration.ini allows, without a shell
schemacreate_table, drop_table, add_column, drop_column, add_index, drop_indexMakes or drops a table, a column or an index on every engine through the kernel's schema handlers
datainsert, ensure, update, deleteInserts, updates or deletes rows of a table on every engine, the values quoted by the connection
sqlRuns statements of the engine the installation runs on, written in the step or in files next to the migration
settingsChanges one INI file of settings/override or settings/siteaccess/<name> through the INI editor, with a backup
graphqlRuns a query or mutation of the GraphQL API in process as the run's user, and keeps its answer for references
code_filecreate, update, ensure, deleteWrites, replaces or removes one code or design file below the allowed folders, with a backup and checksums

Generated by ./console exp:help:examples from settings/migration.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x