This solution is very nice.
Sadly the check is inherited by the children
(I only want the parent to be empty, not the children).
It seems the element that are not inherited are
- Indexes
- Unique constraints
- Primary Keys
- Foreign keys
- Rules and Triggers
thanks anyway for the fast answer,
Cheers,
Rémi C