]> xenbits.xensource.com Git - xcp/xen-api.git/commit
Add the possibility of automatically managed many-to-many relationships between objec...
authorDavid Scott <dave.scott@eu.citrix.com>
Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)
committerDavid Scott <dave.scott@eu.citrix.com>
Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)
commit2f2306840d0f3277dc3db913b932cfa71fc292fc
treeb7ec7bf736d1548a3a94ad00f63cb4a219388aa4
parent27308d19c19a2d7215e5ea88fda97074e146d44c
Add the possibility of automatically managed many-to-many relationships between objects in the datamodel.
1. Add the concept of a many-to-many mapping in the database schema
2. Loosen the existing datamodel sanity checks to permit this new configuration
3. Enforce referential integrity in the mid-level database update functions (remove_row; set_row_in_table)

Also add a set of unit-tests to check referential integity is maintained across create/destroy/modify

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
ocaml/database/database_test.ml
ocaml/database/db_cache_types.ml
ocaml/database/schema.ml
ocaml/idl/datamodel_utils.ml
ocaml/idl/dm_api.ml