mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
FIX Assign the correct id_seq for PersonMoveAccompanyingPeriodParticipationHandler
This commit is contained in:
parent
3af065e530
commit
256579af89
@ -17,7 +17,7 @@ class PersonMoveAccompanyingPeriodParticipationHandler implements PersonMoveSqlH
|
|||||||
{
|
{
|
||||||
$insertSql = sprintf(<<<SQL
|
$insertSql = sprintf(<<<SQL
|
||||||
INSERT INTO chill_person_accompanying_period_participation (person_id, accompanyingperiod_id, id, startdate, enddate)
|
INSERT INTO chill_person_accompanying_period_participation (person_id, accompanyingperiod_id, id, startdate, enddate)
|
||||||
SELECT %d, accompanyingperiod_id, nextval('chill_person_person_center_history_id_seq'), startdate, enddate
|
SELECT %d, accompanyingperiod_id, nextval('chill_person_accompanying_period_id_seq'), startdate, enddate
|
||||||
FROM chill_person_accompanying_period_participation cpapp
|
FROM chill_person_accompanying_period_participation cpapp
|
||||||
WHERE person_id = %d
|
WHERE person_id = %d
|
||||||
AND NOT EXISTS (
|
AND NOT EXISTS (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user