equal
deleted
inserted
replaced
44 (schema and data migration for example). |
44 (schema and data migration for example). |
45 |
45 |
46 Again in the directory `migration`, the file `depends.map` allows to indicate |
46 Again in the directory `migration`, the file `depends.map` allows to indicate |
47 that for the migration to a particular model version, you always have to first |
47 that for the migration to a particular model version, you always have to first |
48 migrate to a particular *CubicWeb* version. This file can contain comments (lines |
48 migrate to a particular *CubicWeb* version. This file can contain comments (lines |
49 starting by `#`) and a dependancy is listed as follows: :: |
49 starting by `#`) and a dependency is listed as follows: :: |
50 |
50 |
51 <model version n° X.Y.Z> : <cubicweb version n° X.Y.Z> |
51 <model version n° X.Y.Z> : <cubicweb version n° X.Y.Z> |
52 |
52 |
53 For example: :: |
53 For example: :: |
54 |
54 |
168 The following functions for data migration are available in `repository` scripts: |
168 The following functions for data migration are available in `repository` scripts: |
169 |
169 |
170 * `rql(rql, kwargs=None, cachekey=None, ask_confirm=True)`, executes an arbitrary RQL |
170 * `rql(rql, kwargs=None, cachekey=None, ask_confirm=True)`, executes an arbitrary RQL |
171 query, either to interrogate or update. A result set object is returned. |
171 query, either to interrogate or update. A result set object is returned. |
172 |
172 |
173 * `add_entity(etype, *args, **kwargs)`, adds a nes entity type of the given |
173 * `add_entity(etype, *args, **kwargs)`, adds a new entity of the given type. |
174 type. The attribute and relation values are specified using the named and |
174 The attribute and relation values are specified as named positional |
175 positionned parameters. |
175 arguments. |
176 |
176 |
177 Workflow creation |
177 Workflow creation |
178 ----------------- |
178 ----------------- |
179 |
179 |
180 The following functions for workflow creation are available in `repository` |
180 The following functions for workflow creation are available in `repository` |