[doc] #342929: bad migration command in overview
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Tue, 28 Jul 2009 19:41:09 +0200
changeset 2533 07a744f64c2e
parent 2532 f7ca29d75183
child 2534 cda22bc0e6ef
[doc] #342929: bad migration command in overview
doc/book/en/annexes/faq.rst
doc/book/en/intro/tutorial/components.rst
--- a/doc/book/en/annexes/faq.rst	Tue Jul 28 18:44:19 2009 +0200
+++ b/doc/book/en/annexes/faq.rst	Tue Jul 28 19:41:09 2009 +0200
@@ -188,11 +188,8 @@
 
   It depends on what has been modified in the schema.
 
-  * Update of an attribute permissions and properties:
-    ``synchronize_eschema('MyEntity')``.
-
-  * Update of a relation permissions and properties:
-    ``synchronize_rschema('MyRelation')``.
+  * Update the permissions and properties of an entity or a relation:
+    ``sync_schema_props_perms('MyEntityOrRelation')``.
 
   * Add an attribute: ``add_attribute('MyEntityType', 'myattr')``.
 
--- a/doc/book/en/intro/tutorial/components.rst	Tue Jul 28 18:44:19 2009 +0200
+++ b/doc/book/en/intro/tutorial/components.rst	Tue Jul 28 19:41:09 2009 +0200
@@ -67,12 +67,12 @@
 Once you modified your data model, you need to synchronize the
 database with your model. For this purpose, *CubicWeb* provides
 a very useful command ``cubicweb-ctl shell blogdemo`` which
-launches an interactive migration Python shell. (see
-:ref:`cubicweb-ctl` for more details))
-As you modified a relation from the `BlogEntry` schema,
-run the following command:
+launches an interactive shell where you can enter migration
+commands. (see :ref:`cubicweb-ctl` for more details))
+As you added the cube named `comment`, you need to run:
+
 ::
 
-  synchronize_rschema('BlogEntry')
+  add_cube('comment')
 
-You can now start your instance and add comments to each `BlogEntry`.
+You can now start your instance and comment your blog entries.