any table in hame schema is updated (or a new row is inserted), modified_at field gets a new timestamp,
any row on plan, plan_regulation or plan_proposition table gets new lifecycle_status --> new row is added into lifecycle_date table.
lifecycle_status on any row in table plan is updated, all plan objects, plan regulations and plan propositions associated with it get the same lifecycle_status.
a new plan object is created, it gets plan_id from the most recent plan (newest by created_at)
Fix #157, #244, #253.
Adds four types of triggers which fire when
hame
schema is updated (or a new row is inserted),modified_at
field gets a new timestamp,plan
,plan_regulation
orplan_proposition
table gets newlifecycle_status
--> new row is added intolifecycle_date
table.lifecycle_status
on any row in tableplan
is updated, all plan objects, plan regulations and plan propositions associated with it get the samelifecycle_status
.plan_id
from the most recent plan (newest bycreated_at
)