equal
deleted
inserted
replaced
65 ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
65 ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
66 |
66 |
67 Once you modified your data model, you need to synchronize the |
67 Once you modified your data model, you need to synchronize the |
68 database with your model. For this purpose, *CubicWeb* provides |
68 database with your model. For this purpose, *CubicWeb* provides |
69 a very useful command ``cubicweb-ctl shell blogdemo`` which |
69 a very useful command ``cubicweb-ctl shell blogdemo`` which |
70 launches an interactive migration Python shell. (see |
70 launches an interactive shell where you can enter migration |
71 :ref:`cubicweb-ctl` for more details)) |
71 commands. (see :ref:`cubicweb-ctl` for more details)) |
72 As you modified a relation from the `BlogEntry` schema, |
72 As you added the cube named `comment`, you need to run: |
73 run the following command: |
73 |
74 :: |
74 :: |
75 |
75 |
76 synchronize_rschema('BlogEntry') |
76 add_cube('comment') |
77 |
77 |
78 You can now start your instance and add comments to each `BlogEntry`. |
78 You can now start your instance and comment your blog entries. |