9 lines
765 B
SQL
Executable File
9 lines
765 B
SQL
Executable File
-- Generic technical areas for all exercises and all training areas (assuming 1 default technical area for each TA)
|
|
|
|
SET SEARCH_PATH TO ex_%ex_id%, PUBLIC;
|
|
INSERT INTO ppm_party (id, role_id, name, color, fading_color, is_used_by, hla_force_identifier, properties ) SELECT id, role_id, name, color, fading_color, false, hla_force_identifier, '{}' FROM ppm.ppm_party;
|
|
|
|
-- for each ADLER chargeType and each party one entry with 10000 and effectSource = ADLER_STANDALONE(3)
|
|
INSERT INTO aes_charge_administration( charge_type_id, party_id, effect_source_id, amount, planned, used, changed, amount_changed_by_operator) SELECT ct.id, p.id, 3, 10000, 0, 0, 0, false from pdm.pdm_charge_type ct CROSS JOIN ppm_party p where ct.properties->>'isAdlerChargeType' = 'true';
|
|
|