Re: database integrity
From: Jan Hidders <jan.hidders_at_REMOVETHIS.pandora.be>
Date: Thu, 19 May 2005 20:51:54 GMT
Message-ID: <K%6je.95748$hi2.5651565_at_phobos.telenet-ops.be>
Date: Thu, 19 May 2005 20:51:54 GMT
Message-ID: <K%6je.95748$hi2.5651565_at_phobos.telenet-ops.be>
Kenneth Downs wrote:
>
> One question on my mind is the change in rules over time. Do we say:
>
> 1. Data is valid if it adheres to all existing biz rules, OR:
> 2. Data is valid if it adheres to rules that were in force when it was
> inserted or updated.
Very interesting question. I would say that it is the simplest to let the static database constraints be applicable for all the data, and if you want to restrict what can be added (or deleted or updated) then you use dynamic database constraints (or transition constraints, as they are also called) to specify that.
- Jan Hidders