doc/book/en/development/migration/index.rst
changeset 4437 21f2e01fdd6a
parent 2544 282261b26774
child 4442 7bc0e4ed4109
equal deleted inserted replaced
4436:294e084f1263 4437:21f2e01fdd6a
    77 * the function `_`, it is equivalent to `unicode` allowing to flag the strings
    77 * the function `_`, it is equivalent to `unicode` allowing to flag the strings
    78   to internationalize in the migration scripts.
    78   to internationalize in the migration scripts.
    79 
    79 
    80 In the `repository` scripts, the following identifiers are also defined:
    80 In the `repository` scripts, the following identifiers are also defined:
    81 
    81 
    82 * `checkpoint`, request confirming and executing a "commit" at checking point
    82 * `checkpoint`,._cwuest confirming and executing a "commit" at checking point
    83 
    83 
    84 * `schema`, instance schema (readen from the database)
    84 * `schema`, instance schema (readen from the database)
    85 
    85 
    86 * `fsschema`, installed schema on the file system (e.g. schema of
    86 * `fsschema`, installed schema on the file system (e.g. schema of
    87   the updated model and cubicweb)
    87   the updated model and cubicweb)
   163 scripts:
   163 scripts:
   164 
   164 
   165 * `add_state(name, stateof, initial=False, commit=False, **kwargs)`, adds a new state
   165 * `add_state(name, stateof, initial=False, commit=False, **kwargs)`, adds a new state
   166   in the workflow.
   166   in the workflow.
   167 
   167 
   168 * `add_transition(name, transitionof, fromstates, tostate, requiredgroups=(), commit=False, **kwargs)`,
   168 * `add_transition(name, transitionof, fromstates, tostate,._cwuiredgroups=(), commit=False, **kwargs)`,
   169   adds a new transition in the workflow.
   169   adds a new transition in the workflow.
   170 
   170 
   171 You can find more details about workflows in the chapter :ref:`Workflow` .
   171 You can find more details about workflows in the chapter :ref:`Workflow` .
   172 
   172 
   173 Configuration migration
   173 Configuration migration