doc/book/en/annexes/faq.rst
changeset 2533 07a744f64c2e
parent 2476 1294a6bdf3bf
child 2535 c7b736929a58
equal deleted inserted replaced
2532:f7ca29d75183 2533:07a744f64c2e
   186 How to update a database after a schema modification ?
   186 How to update a database after a schema modification ?
   187 ------------------------------------------------------
   187 ------------------------------------------------------
   188 
   188 
   189   It depends on what has been modified in the schema.
   189   It depends on what has been modified in the schema.
   190 
   190 
   191   * Update of an attribute permissions and properties:
   191   * Update the permissions and properties of an entity or a relation:
   192     ``synchronize_eschema('MyEntity')``.
   192     ``sync_schema_props_perms('MyEntityOrRelation')``.
   193 
       
   194   * Update of a relation permissions and properties:
       
   195     ``synchronize_rschema('MyRelation')``.
       
   196 
   193 
   197   * Add an attribute: ``add_attribute('MyEntityType', 'myattr')``.
   194   * Add an attribute: ``add_attribute('MyEntityType', 'myattr')``.
   198 
   195 
   199   * Add a relation: ``add_relation_definition('SubjRelation', 'MyRelation', 'ObjRelation')``.
   196   * Add a relation: ``add_relation_definition('SubjRelation', 'MyRelation', 'ObjRelation')``.
   200 
   197