gem/oq-engine — pull request #723 by larsbutler (2012-03-20 10:46:37+00:00)
Title: Damage Distributions DB model

Addresses: https://bugs.launchpad.net/openquake/+bug/922506

This branch adds three different types of `damage distribution` outputs to the database:

- per asset
- per taxonomy
- total (per calculation/region of interest)

This branch also adds insert/update triggers for each dmg dist to ensure that `dmg_state` values remain valid.