omeka-s-modules / Collecting

GNU General Public License v3.0
2 stars 6 forks source link

Figure out what to do when a property is deleted #3

Closed jimsafley closed 8 years ago

jimsafley commented 8 years ago

Let's say someone deletes a property (by deleting its vocabulary or whatever). Any property-type prompt that's assigned to that property will no longer function. We need to set either an onDelete="CASCADE" or an onDelete="SET NULL" on the prompt's property annotation.

CASCADE is risky because all text assigned to that prompt will also be deleted. (This is the same for item property text, if that's any consolation.) If our goal is to preserve collecting inputs at all costs, even when something so drastic as deleting a property happens, we should SET NULL and change the prompt type from "property" to "input" (i.e. "Supplementary") on some delete event.