diff --git a/legacyworlds-server-data/db-structure/parts/040-functions/170-events.sql b/legacyworlds-server-data/db-structure/parts/040-functions/170-events.sql index 8cdba58..f545d8c 100644 --- a/legacyworlds-server-data/db-structure/parts/040-functions/170-events.sql +++ b/legacyworlds-server-data/db-structure/parts/040-functions/170-events.sql @@ -111,7 +111,8 @@ BEGIN END IF; INSERT INTO evdef_temp( evdef_id , evfld_typespec ) - VALUES( _id , _prio::TEXT || ' , ' || _adj::TEXT ); + VALUES( _id , _prio::TEXT || ',' || _adj::TEXT + || ',' || _name_id || ',' || _template_id ); RETURN 'OK'; END; $evdef_start$; @@ -475,7 +476,8 @@ BEGIN END IF; _qstr := 'INSERT INTO events.event_definitions (' || - 'evdef_id , evdef_priority , evdef_adjustable' || + 'evdef_id , evdef_priority , evdef_adjustable , ' || + 'evdef_name_id , evdef_template_id' || ') VALUES ( $1 , ' || _rec.evfld_typespec || ');'; BEGIN