Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

@@ -0,0 +1,20 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: update column ex_NN.rec_equipment_state.vulnerability_kind_id = pdm_vulnerability_kind.ta_vulnerability_kind
-- PROJECT: Guez
-- DATE: 2021-03-10
-- VERSION: 1.01
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
UPDATE rec_equipment_state
SET vulnerability_kind_id = (SELECT ta_vulnerability_kind FROM pdm.pdm_vulnerability_kind WHERE rec_equipment_state.vulnerability_kind_id = pdm.pdm_vulnerability_kind.id);
COMMIT;
@@ -0,0 +1,27 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: drop PK and column id from pdm_vulnerability_kind and add PK on ta_vulnerability_kind
-- PROJECT: Guez
-- DATE: 2021-03-10
-- VERSION: 1.02
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
-- duplicate 459369 -> 459376
UPDATE pdm_vulnerability_kind SET ta_vulnerability_kind = 459376 WHERE player_type_class_id = 3 AND ta_vulnerability_kind = 459369 AND vulnerability_class_id = 5 AND name LIKE 'Sekund%';
-- drop old primary key on column id
ALTER TABLE IF EXISTS pdm_vulnerability_kind DROP CONSTRAINT IF EXISTS PK_pdm_vulnerability_kind_id CASCADE;
-- drop column id
ALTER TABLE IF EXISTS pdm_vulnerability_kind DROP COLUMN IF EXISTS id CASCADE;
-- create new primary key on ta_vulnerability_kind
ALTER TABLE IF EXISTS pdm_vulnerability_kind DROP CONSTRAINT IF EXISTS PK_pdm_vulnerability_kind_ta_vulnerability_kind CASCADE;
ALTER TABLE IF EXISTS pdm_vulnerability_kind ADD CONSTRAINT PK_pdm_vulnerability_kind_ta_vulnerability_kind PRIMARY KEY (ta_vulnerability_kind);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+90
View File
@@ -0,0 +1,90 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: AES updates (enum, explosion single central table, recorded table and view)
-- PROJECT: Guez
-- DATE: 2021-03-12
-- VERSION: 1.03
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- enum
ALTER TABLE IF EXISTS aes_fuse_type DROP CONSTRAINT IF EXISTS PK_aes_fuse_type_id CASCADE;
DROP TABLE IF EXISTS aes_fuse_type CASCADE;
CREATE TABLE IF NOT EXISTS aes_fuse_type (
id integer,
name text
);
COMMENT ON TABLE aes_fuse_type IS 'static data (<b>not</b> project specific) generate from enum';
ALTER TABLE IF EXISTS aes_fuse_type ADD CONSTRAINT PK_aes_fuse_type_id PRIMARY KEY (id);
INSERT INTO aes_fuse_type (id, name) VALUES (0, 'FtProximity');
INSERT INTO aes_fuse_type (id, name) VALUES (1, 'FtImpact');
INSERT INTO aes_fuse_type (id, name) VALUES (2, 'FtDelay');
-- table aes_explosion_single_central
ALTER TABLE IF EXISTS aes_explosion_single_central DROP CONSTRAINT IF EXISTS PK_aes_explosion_single_central_id CASCADE;
ALTER TABLE IF EXISTS aes_explosion_single_central DROP CONSTRAINT IF EXISTS FK_aes_explosion_single_central_explosion_single_id_aes_explosi CASCADE;
ALTER TABLE IF EXISTS aes_explosion_single_central DROP CONSTRAINT IF EXISTS FK_aes_explosion_single_central_fuse_type_id_aes_fuse_type_id CASCADE;
DROP TABLE IF EXISTS aes_explosion_single_central CASCADE;
CREATE SEQUENCE IF NOT EXISTS aes_explosion_single_central_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE TABLE IF NOT EXISTS aes_explosion_single_central (
id integer DEFAULT nextval(( 'aes_explosion_single_central_id_seq'::text)::regclass),
explosion_single_id integer,
angle double precision,
fuse_type_id integer
);
ALTER TABLE IF EXISTS aes_explosion_single_central ADD CONSTRAINT PK_aes_explosion_single_central_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS aes_explosion_single_central ADD CONSTRAINT FK_aes_explosion_single_central_explosion_single_id_aes_explosi FOREIGN KEY (explosion_single_id) REFERENCES aes_explosion_single (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE IF EXISTS aes_explosion_single_central ADD CONSTRAINT FK_aes_explosion_single_central_fuse_type_id_aes_fuse_type_id FOREIGN KEY (fuse_type_id) REFERENCES aes_fuse_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
-- recorded table rec_explosion_single_central
ALTER TABLE IF EXISTS rec_explosion_single_central DROP CONSTRAINT IF EXISTS PK_rec_explosion_single_central_rec_id CASCADE;
ALTER TABLE IF EXISTS rec_explosion_single_central DROP CONSTRAINT IF EXISTS IDX_rec_explosion_single_central_sample_time CASCADE;
DROP TABLE IF EXISTS rec_explosion_single_central CASCADE;
CREATE SEQUENCE IF NOT EXISTS rec_explosion_single_central_rec_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE TABLE IF NOT EXISTS rec_explosion_single_central (
id integer,
name text,
is_deleted boolean,
is_used boolean,
sample_time bigint,
charge_type_id integer,
effect_duration integer,
effect_start bigint,
effect_state_id integer,
party_id integer,
participant_id integer,
effect_marking_in_ta boolean,
external_id bigint,
impact_position_lon double precision,
impact_position_lat double precision,
fire_request_time bigint,
altitude integer,
purpose text,
angle double precision,
fuse_type integer,
rec_id bigint DEFAULT nextval(( 'rec_explosion_single_central_rec_id_seq'::text)::regclass),
dds_is_alive boolean DEFAULT true,
insert_time bigint DEFAULT (extract(epoch from now()) * 1000)
);
COMMENT ON TABLE rec_explosion_single_central IS 'recorded data for topic ExplosionSingleCentral';
ALTER TABLE IF EXISTS rec_explosion_single_central ADD CONSTRAINT PK_rec_explosion_single_central_rec_id PRIMARY KEY (rec_id);
CREATE INDEX IDX_rec_explosion_single_central_sample_time ON rec_explosion_single_central (sample_time);
-- view aes_explosion_single_central_view
DROP VIEW IF EXISTS aes_explosion_single_central_view;
CREATE OR REPLACE VIEW aes_explosion_single_central_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_explosion.entity_id AS entity_id, aes_explosion.impact_position_x AS impact_position_x, aes_explosion.impact_position_y AS impact_position_y, aes_explosion.rotation_angle AS rotation_angle, aes_explosion.fire_purpose AS fire_purpose, aes_explosion.fire_request_time AS fire_request_time, aes_explosion.altitude AS altitude, aes_explosion_single.explosion_id AS explosion_id, aes_explosion_single_central.explosion_single_id AS explosion_single_id, aes_explosion_single_central.angle AS angle, aes_explosion_single_central.fuse_type_id AS fuse_type_id, aes_explosion_single_central.id AS aes_explosion_single_central_id
FROM aes_explosion_single_central, aes_entity, aes_explosion, aes_explosion_single
WHERE aes_entity.id = aes_explosion.entity_id AND
aes_explosion.id = aes_explosion_single.explosion_id AND
aes_explosion_single.id = aes_explosion_single_central.explosion_single_id;
COMMIT;
@@ -0,0 +1,42 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Added missing operator rights descriptions
-- PROJECT: Guez
-- DATE: 2021-02-22
-- VERSION: 1.04
-------------------------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
-- old right without description
UPDATE opm.opm_group SET description = 'Edit Charge Visibility' WHERE name = 'ChargeVisibilityEdit';
UPDATE opm.opm_group SET description = 'SanNineLiner operator rights' WHERE name = 'SanNineLiner';
UPDATE opm.opm_group SET description = 'Edit SanNineLiner' WHERE name = 'SanNineLinerEdit';
UPDATE opm.opm_group SET description = 'Show SanNineLiner' WHERE name = 'SanNineLinerShow';
UPDATE opm.opm_group SET description = 'View Operational Plannings' WHERE name = 'OperationalPlanningView';
UPDATE opm.opm_group SET description = 'Administrator rights' WHERE name = 'Administrator';
UPDATE opm.opm_group SET description = 'Shut down workstations' WHERE name = 'ShutdownWorkstations';
UPDATE opm.opm_group SET description = 'Database Administration' WHERE name = 'DatabaseAdministration';
UPDATE opm.opm_group SET description = 'Change exercise state' WHERE name = 'ExerciseStateEdit';
UPDATE opm.opm_group SET description = 'Edit Codification Data' WHERE name = 'CodificationDataEdit';
UPDATE opm.opm_group SET description = 'Show Codification Data BLUFOR' WHERE name = 'CodificationDataShowBLUFOR';
UPDATE opm.opm_group SET description = 'Show Codification Data OPFOR' WHERE name = 'CodificationDataShowOPFOR';
UPDATE opm.opm_group SET description = 'Allow access to the voice communication channels' WHERE name = 'AvVoiceCommunicationAccess';
UPDATE opm.opm_group SET description = 'Edit Combat Net Radio Frequency Planning' WHERE name = 'FrequencyPlanningEdit';
UPDATE opm.opm_group SET description = 'Show Guez Nasat Configuration' WHERE name = 'GuezNasatConfigurationShow';
UPDATE opm.opm_group SET description = 'Edit Guez Nasat Configuration' WHERE name = 'GuezNasatConfigurationEdit';
-- new operator right for PvSan Reports
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (520159235, 'ReportsEditSan', 'Create and Edit PvSan Reports');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (520093698, 'ReportsEditSan', 'Create and Edit PvSan Reports', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (520093698, 520159235); -- group_id is: 520093698 = 0x1f000002
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (520159232, 520093698); -- Reports
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,56 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add ISM views, grant select on views to all users, export csv commented
-- PROJECT: Guez
-- DATE: 2021-03-22
-- VERSION: 1.05
-------------------------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
DROP VIEW IF EXISTS ism.ism_mpa_barcodes;
CREATE OR REPLACE VIEW ism.ism_mpa_barcodes AS
SELECT asset_id, a.barcode AS asset_barcode, structure_element_id, se.barcode AS se_barcode, se.main_structure_element_id, mse.name
FROM ism.ism_mounting_point_asset mpa, ism.ism_asset a, ism.ism_structure_element se, ism.ism_main_structure_element mse
WHERE mpa.asset_id = a.id AND mpa.structure_element_id = se.id AND se.main_structure_element_id = mse.id AND mse.id > 300
AND length(a.barcode) > 0 AND length(se.barcode) > 0
ORDER BY mse.id, se.id;
-- COPY (SELECT * from ism.ism_mpa_barcodes) TO '/opt/postgres/backup/ism_mpa_barcodes.csv' DELIMITER ',' CSV HEADER;
DROP VIEW IF EXISTS ism.ism_se_barcodes;
CREATE OR REPLACE VIEW ism.ism_se_barcodes AS
SELECT se.id,se.name,se.main_structure_element_id,mse.name as main_name,se.barcode
FROM ism.ism_structure_element se, ism.ism_main_structure_element mse
WHERE se.main_structure_element_id = mse.id AND length(se.barcode) > 0 AND mse.id > 300
ORDER BY mse.id, se.id;
-- COPY (SELECT * from ism.ism_se_barcodes WHERE main_structure_element_id > 300) TO '/opt/postgres/backup/ism_se_barcodes.csv' DELIMITER ',' CSV HEADER;
DROP VIEW IF EXISTS ism.ism_view_plans;
CREATE OR REPLACE VIEW ism.ism_view_plans AS
SELECT mpp.id, mpp.mounting_point_schedule_id, mpp.structure_element_id, se.main_structure_element_id, se.name, mse.name as main_name
FROM ism.ism_mounting_point_plan mpp, ism.ism_structure_element se, ism.ism_main_structure_element mse
WHERE se.id = mpp.structure_element_id AND se.main_structure_element_id = mse.id AND mse.id > 300
ORDER BY mse.id, se.id;
-- COPY (SELECT * from ism.ism_view_plans) TO '/opt/postgres/backup/ism_view_plans.csv' DELIMITER ',' CSV HEADER;
DROP VIEW IF EXISTS ism.ism_view_buildings;
CREATE OR REPLACE VIEW ism.ism_view_buildings AS
SELECT se.id AS se_id, se.main_structure_element_id AS bldg_id, mse.model_id, se.display_name, se.barcode AS se_barcode, se.rel_position_x, se.rel_position_y, se.rel_position_z, mpt.name AS mp_type, mpa.asset_id, at.barcode AS asset_barcode
FROM ism.ism_mounting_point_type mpt, ism.ism_main_structure_element mse, ism.ism_structure_element se LEFT OUTER JOIN ism.ism_mounting_point_asset mpa ON se.id = mpa.structure_element_id
LEFT OUTER JOIN ism.ism_asset at ON mpa.asset_id = at.id
WHERE se.mounting_point_type_id = mpt.id AND se.main_structure_element_id = mse.id
ORDER BY se.main_structure_element_id, se.id;
-- COPY (SELECT * from ism.ism_view_buildings) TO '/opt/postgres/backup/ism_view_buildings.csv' DELIMITER ',' CSV HEADER;
-- grant select on views to all users
GRANT SELECT ON ALL TABLES IN SCHEMA ism TO ets_ro;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,27 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: add column sanitation_unique_id, drop column procedures_needed, change type for procedures_taken as bigint
-- PROJECT: Guez
-- DATE: 2021-03-22
-- VERSION: 1.06
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS rec_dynamic_participant_data ADD COLUMN IF NOT EXISTS sanitation_unique_id bigint;
ALTER TABLE IF EXISTS rep_sanitation_material_data ADD COLUMN IF NOT EXISTS sanitation_unique_id bigint;
ALTER TABLE IF EXISTS rep_sanitation_material_result ADD COLUMN IF NOT EXISTS sanitation_unique_id bigint;
ALTER TABLE IF EXISTS rec_participant_sanitation ADD COLUMN IF NOT EXISTS sanitation_result integer;
ALTER TABLE IF EXISTS rec_participant_sanitation DROP COLUMN IF EXISTS procedures_needed;
ALTER TABLE IF EXISTS rec_participant_sanitation ADD COLUMN IF NOT EXISTS procedures_taken bigint;
ALTER TABLE IF EXISTS rec_participant_sanitation ALTER COLUMN procedures_taken TYPE bigint;
COMMIT;
@@ -0,0 +1,302 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: update values in PDM building charge effect
-- PROJECT: Guez
-- DATE: 2021-03-23
-- VERSION: 1.07
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DELETE FROM pdm.pdm_building_charge_effect;
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (1, 1, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (2, 2, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (3, 3, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (4, 4, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (5, 5, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (6, 6, 10, 10, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (7, 7, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (8, 8, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (9, 9, 10, 10, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (10, 10, 5, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (11, 11, 0, 0, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (12, 12, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (13, 13, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (14, 14, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (15, 15, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (16, 16, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (17, 17, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (18, 18, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (19, 19, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (20, 20, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (21, 21, 5, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (22, 22, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (23, 23, 0, 0, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (24, 24, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (25, 25, 10, 50, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (26, 26, 10, 10, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (27, 27, 10, 0, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (28, 28, 10, 1, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (29, 29, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (30, 30, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (31, 31, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (32, 32, 10, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (33, 33, 1, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (34, 34, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (35, 35, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (36, 36, 10, 0, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (37, 37, 5, 5, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (38, 38, 10, 5, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (39, 39, 10, 5, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (40, 40, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (41, 41, 5, 0, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (42, 42, 10, 0, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (43, 43, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (44, 44, 5, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (45, 45, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (46, 48, 10, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (47, 49, 50, 10, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (48, 50, 10, 5000, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (49, 51, 0, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (50, 52, 5000, 5000, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (51, 53, 10, 5, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (52, 54, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (53, 55, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (54, 56, 1, 1, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (55, 57, 1, 1, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (56, 58, 1, 1, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (57, 59, 1, 1, 6, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (58, 60, 10, 150, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (59, 61, 10, 150, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (60, 62, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (61, 63, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (62, 64, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (63, 65, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (64, 66, 5, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (65, 67, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (66, 68, 10, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (67, 69, 50, 10, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (68, 70, 100, 100, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (69, 71, 300, 300, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (70, 72, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (71, 73, 10, 10, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (72, 74, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (73, 75, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (74, 76, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (75, 77, 5, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (76, 78, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (77, 79, 300, 300, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (78, 371, 100, 150, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (79, 372, 50, 100, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (80, 373, 50, 50, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (81, 374, 0, 0, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (82, 375, 0, 0, 4, true, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (83, 381, 100, 150, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (84, 382, 10, 5, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (85, 385, 0, 0, 4, true, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (86, 471, 10, 5, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (87, 472, 50, 100, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (88, 474, 50, 100, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (89, 476, 50, 100, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (90, 482, 100, 200, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (91, 2001, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (92, 2002, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (93, 2003, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (94, 2004, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (95, 2005, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (96, 2006, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (97, 2007, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (98, 2008, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (99, 2009, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (100, 2010, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (101, 2011, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (102, 2012, 5, 5, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (103, 2013, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (104, 2014, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (105, 2015, 10, 10, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (106, 2016, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (107, 2017, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (108, 2018, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (109, 2019, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (110, 2020, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (111, 2021, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (112, 2022, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (113, 2023, 5, 1, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (114, 2024, 0, 0, 19, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (115, 2025, 5, 0, 19, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (116, 2026, 10, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (117, 2027, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (118, 2028, 10, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (119, 2029, 10, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (120, 2030, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (121, 2031, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (122, 2032, 25, 25, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (123, 2033, 25, 25, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (124, 2034, 5, 0, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (125, 2035, 15, 15, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (126, 2036, 15, 15, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (127, 2037, 10, 0, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (128, 2038, 10, 5, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (129, 2039, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (130, 2040, 10, 0, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (131, 2041, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (132, 2042, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (133, 2043, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (134, 2044, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (135, 2045, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (136, 2046, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (137, 2047, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (138, 2048, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (139, 2049, 10, 5, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (140, 2050, 10, 0, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (141, 2051, 10, 10, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (142, 2052, 10, 10, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (143, 2053, 25, 25, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (144, 2054, 10, 5, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (145, 2055, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (146, 2056, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (147, 2057, 150, 150, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (148, 2058, 150, 150, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (149, 2059, 150, 300, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (150, 2060, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (151, 2061, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (152, 2062, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (153, 2063, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (154, 2064, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (155, 2065, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (156, 2066, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (157, 2067, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (158, 2068, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (159, 2069, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (160, 2070, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (161, 2071, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (162, 2072, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (163, 2073, 10, 10, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (164, 2074, 10, 10, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (165, 2075, 10, 50, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (166, 2076, 10, 10, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (167, 2077, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (168, 2078, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (169, 2079, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (170, 2080, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (171, 2081, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (172, 2082, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (173, 2083, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (174, 2084, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (175, 2085, 10, 0, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (176, 2086, 10, 0, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (177, 2087, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (178, 2088, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (179, 2089, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (180, 2090, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (181, 2091, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (182, 2092, 150, 100, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (183, 2093, 150, 300, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (184, 2094, 150, 300, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (185, 2095, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (186, 2096, 10, 10, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (187, 2097, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (188, 2098, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (189, 2099, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (190, 2100, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (191, 2101, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (192, 2102, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (193, 2103, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (194, 2104, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (195, 2105, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (196, 2106, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (197, 2107, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (198, 2108, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (199, 2109, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (200, 2110, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (201, 2111, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (202, 2112, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (203, 2113, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (204, 2114, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (205, 2115, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (206, 2116, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (207, 2117, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (208, 2118, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (209, 2119, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (210, 2120, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (211, 2121, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (212, 2122, 10, 10, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (213, 2123, 10, 10, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (214, 2124, 100, 200, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (215, 2125, 300, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (216, 2126, 300, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (217, 2127, 300, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (218, 2128, 300, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (219, 2129, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (220, 2130, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (221, 2131, 150, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (222, 2132, 150, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (223, 2133, 150, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (224, 2134, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (225, 2135, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (226, 2136, 300, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (227, 2137, 300, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (228, 2138, 10, 10, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (229, 2139, 150, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (230, 2140, 150, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (231, 2141, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (232, 2142, 10, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (233, 2143, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (234, 2144, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (235, 2145, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (236, 2146, 10, 50, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (237, 2147, 10, 50, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (238, 2148, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (239, 2149, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (240, 2150, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (241, 2151, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (242, 2152, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (243, 2153, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (244, 2154, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (245, 2155, 150, 150, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (246, 2156, 150, 150, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (247, 2157, 150, 150, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (248, 2158, 150, 150, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (249, 2159, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (250, 2160, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (251, 2161, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (252, 2162, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (253, 2163, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (254, 2164, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (255, 2165, 150, 1000, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (256, 2166, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (257, 2167, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (258, 2168, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (259, 2169, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (260, 2170, 10, 0, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (261, 2171, 150, 10, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (262, 2172, 300, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (263, 2173, 5000, 5000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (264, 2174, 150, 150, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (265, 2175, 5, 0, 17, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (266, 2176, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (267, 2177, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (268, 2178, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (269, 2179, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (270, 2180, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (271, 2181, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (272, 2182, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (273, 2183, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (274, 2184, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (275, 2185, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (276, 2186, 5000, 5000, 10, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (277, 2187, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (278, 2188, 10, 10, 17, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (279, 2189, 10, 0, 9, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (280, 2190, 10, 0, 9, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (281, 2191, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (282, 2192, 5, 0, 13, true, true);
ALTER SEQUENCE pdm.pdm_building_charge_effect_id_seq RESTART WITH 283;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,114 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: New Sanitation Procedures in PDM, changes in EX rec_sanitation, new sanitation materials
-- PROJECT: Guez
-- DATE: 2021-05-18
-- VERSION: 1.08
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DELETE FROM pdm_sanitation_procedures;
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (0, 'None');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (1, 'ApplTourniquet');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (2, 'PressureDress');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (3, 'Hemostyptics');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (4, 'ManCompression');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (5, 'Tamponade');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (6, 'JawThrustMan');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (7, 'WendlTube');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (8, 'RecPosition');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (9, 'HeadOfBedEle');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (10, 'GuedelTube');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (11, 'LarynxTube');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (12, 'EmergencyCric');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (13, 'TrachealTube');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (14, 'ChestSeal');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (15, 'OxygenDelivery');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (16, 'ChestTube');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (17, 'AsVentilation');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (18, 'ShockPosition');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (19, 'IVAccess');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (20, 'IOAccess');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (21, 'FluidSubstitut');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (22, 'AssessmAwaren');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (23, 'DeterminCGS');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (24, 'RecovPosition');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (25, 'Positioning');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (26, 'VitSignsCheck');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (27, 'UniversalRail');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (28, 'BleedingControl');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (29, 'RescueBlanket');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (30, 'Blizzard');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (31, 'TreatmBurnings');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (32, 'GenWoundCare');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (33, 'Analgesics');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (34, 'Antibiotics');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (35, 'TranesamicAcid');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (36, 'Hypnotics');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (37, 'RingersSolution');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (38, 'MuscleRelaxant');
INSERT INTO pdm_sanitation_procedures (id, name) VALUES (99, 'Unknown');
-- PDM: New sanitation materials (IO, 2021.05.18)
-- do not delete old ida 1-8 because of FK
--DELETE FROM pdm.pdm_sanitation_material;
--INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (1, 'Tourniquet');
--INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (2, 'Notverband');
--INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (3, 'QuikClot-Combatgauze');
--INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (4, 'AMD Verband');
--INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (5, 'Wendl-Tubus');
--INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (6, 'Guedel-Tubus');
--INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (7, 'Larynx-Tubus');
--INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (8, 'Not-Koniotomie-Set');
-- old ids, new names
UPDATE pdm.pdm_sanitation_material SET name = 'Tourniquet' WHERE id = 1;
UPDATE pdm.pdm_sanitation_material SET name = 'Notverband' WHERE id = 2;
UPDATE pdm.pdm_sanitation_material SET name = 'QuikClot-Combatgauze' WHERE id = 3;
UPDATE pdm.pdm_sanitation_material SET name = 'AMD Verband' WHERE id = 4;
UPDATE pdm.pdm_sanitation_material SET name = 'Wendl-Tubus' WHERE id = 5;
UPDATE pdm.pdm_sanitation_material SET name = 'Guedel-Tubus' WHERE id = 6;
UPDATE pdm.pdm_sanitation_material SET name = 'Larynx-Tubus' WHERE id = 7;
UPDATE pdm.pdm_sanitation_material SET name = 'Not-Koniotomie-Set' WHERE id = 8;
-- New material ids
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (9, 'Endotracheal-Tubus');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (10, 'Thoraxpflaster');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (11, 'Dekompressionsnadel');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (12, 'Beutelmaske');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (13, 'i. v. Zugang-Set');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (14, 'i. o. Zugang-Set');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (15, 'Voll-Elektrolytlösung');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (16, 'Dreiecktuch');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (17, 'Universalschiene');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (18, 'Rettungsdecke');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (19, 'Blizzard');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (20, 'Brandwundenverbandpäckchen');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (21, 'Allg. Wundversorgung');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (22, 'Morphin-Autoinjektor');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (23, 'Antibiotikum');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (24, 'Tranexamsäure');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (25, 'Hypnotikum');
INSERT INTO pdm.pdm_sanitation_material (id, name) VALUES (26, 'Muskelrelaxans');
--UPDATE pdm.pdm_sanitation_material SET description = name;
ALTER SEQUENCE pdm.pdm_sanitation_material_id_seq RESTART WITH 27;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS rec_sanitation DROP COLUMN IF EXISTS data_sanitation_procedures_needed;
ALTER TABLE IF EXISTS rec_sanitation ALTER COLUMN data_sanitation_procedures_taken TYPE bigint;
ALTER TABLE IF EXISTS rep_treatment_data ADD COLUMN IF NOT EXISTS sanitation_procedures_taken bigint;
ALTER TABLE IF EXISTS rep_treatment_data ADD COLUMN IF NOT EXISTS sanitation_result integer;
ALTER TABLE IF EXISTS rep_treatment_data DROP COLUMN IF EXISTS success_treatment;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS sanitation_procedures_taken bigint;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS sanitation_result integer;
ALTER TABLE IF EXISTS rep_treatment_result DROP COLUMN IF EXISTS success_treatment;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS priority_correct boolean;
COMMIT;
@@ -0,0 +1,20 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: new columns originator_building_id and originator_room_id in recorded table rec_hit_line_info (SVN 53507)
-- PROJECT: Guez
-- DATE: 2021-05-27
-- VERSION: 1.09
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS rec_hit_line_info ADD COLUMN IF NOT EXISTS originator_building_id INTEGER;
ALTER TABLE IF EXISTS rec_hit_line_info ADD COLUMN IF NOT EXISTS originator_room_id INTEGER;
COMMIT;
@@ -0,0 +1,19 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Fixes NLDEVCTRL-925 (RPL Nr 728: MunCode falsch)
-- PROJECT: Guez
-- DATE: 2021-06-21
-- VERSION: 1.10
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
UPDATE pdm.pdm_charge_type SET name='22mm / 23mm AP', short_name='22mm / 23mm AP' WHERE id=2035;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+23
View File
@@ -0,0 +1,23 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add role ctc_sv (backwords compatibility, used for MBA)
-- PROJECT: Guez
-- DATE: 2021-06-22
-- VERSION: 1.11
-------------------------------------------------------------------------
-- GLOBAL: PUBLIC;
BEGIN;
-- For Convenience (Backwards Usability)
--CREATE USER ctc PASSWORD 'ctc11de' CREATEROLE;
CREATE USER ctc_sv PASSWORD 'ctc11de' CREATEROLE;
--CREATE USER ctc_ws PASSWORD 'ctc11de' CREATEROLE;
GRANT ets_ro TO ctc, ctc_sv;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+19
View File
@@ -0,0 +1,19 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Added column Name to ISM MPA (SVN 53407)
-- PROJECT: Guez
-- DATE: 2021-06-22
-- VERSION: 1.12
-------------------------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
ALTER TABLE ism_mounting_point_asset ADD COLUMN name text;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,40 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add table egcu_relay_info in ASM (SVN 53346)
-- PROJECT: Guez
-- DATE: 2021-06-22
-- VERSION: 1.13
-------------------------------------------------------------------------
-- GLOBAL: ASM;
BEGIN;
ALTER TABLE IF EXISTS asm_egcu_relay_info DROP CONSTRAINT IF EXISTS PK_asm_egcu_relay_info_id CASCADE;
ALTER TABLE IF EXISTS asm_egcu_relay_info DROP CONSTRAINT IF EXISTS UQ_asm_egcu_relay_info_id CASCADE;
ALTER TABLE IF EXISTS asm_egcu_relay_info DROP CONSTRAINT IF EXISTS UQ_asm_egcu_relay_info_name CASCADE;
ALTER TABLE IF EXISTS asm_egcu_relay_info DROP CONSTRAINT IF EXISTS UQ_asm_egcu_relay_info_relay_id CASCADE;
DROP TABLE IF EXISTS asm_egcu_relay_info CASCADE;
CREATE TABLE IF NOT EXISTS asm_egcu_relay_info (
id integer DEFAULT nextval(( 'asm.asm_egcu_relay_info_id_seq'::text)::regclass),
relay_id integer, -- Index of Relay
name text, -- Name of relay
description text, -- description of relay
properties text -- properties of relay
);
COMMENT ON TABLE asm_egcu_relay_info IS 'EGCU-Relay-Names';
COMMENT ON COLUMN asm_egcu_relay_info.relay_id IS 'Index of Relay';
COMMENT ON COLUMN asm_egcu_relay_info.name IS 'Name of relay';
COMMENT ON COLUMN asm_egcu_relay_info.description IS 'description of relay';
COMMENT ON COLUMN asm_egcu_relay_info.properties IS 'properties of relay';
CREATE SEQUENCE IF NOT EXISTS asm_egcu_relay_info_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS asm_egcu_relay_info ADD CONSTRAINT PK_asm_egcu_relay_info_id PRIMARY KEY (id);
ALTER TABLE asm_egcu_relay_info ADD CONSTRAINT UQ_asm_egcu_relay_info_id UNIQUE (id);
ALTER TABLE asm_egcu_relay_info ADD CONSTRAINT UQ_asm_egcu_relay_info_name UNIQUE (name);
ALTER TABLE asm_egcu_relay_info ADD CONSTRAINT UQ_asm_egcu_relay_info_relay_id UNIQUE (relay_id);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,53 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add table bcu_egcu_relay_infos in Exercise BLD (SVN 53304, 53573)
-- PROJECT: Guez
-- DATE: 2021-06-23
-- VERSION: 1.14
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- Drop tables/views/sequences/constraints
ALTER TABLE IF EXISTS bcu_egcu_relay_infos DROP CONSTRAINT IF EXISTS PK_bcu_egcu_relay_infos_id CASCADE;
ALTER TABLE IF EXISTS bcu_egcu_relay_infos DROP CONSTRAINT IF EXISTS UQ_bcu_egcu_relay_infos_id CASCADE;
ALTER TABLE IF EXISTS bcu_egcu_relay_infos DROP CONSTRAINT IF EXISTS UQ_bcu_egcu_relay_infos_index CASCADE;
ALTER TABLE IF EXISTS bcu_egcu_relay_infos DROP CONSTRAINT IF EXISTS UQ_bcu_egcu_relay_infos_name CASCADE;
DROP TABLE IF EXISTS bcu_egcu_relay_infos CASCADE;
-- Create tables
CREATE TABLE IF NOT EXISTS bcu_egcu_relay_infos (
id integer DEFAULT nextval(( 'bcu_egcu_relay_infos_id_seq'::text)::regclass),
asset_id bigint, -- 0 = default for all EGCUs &gt, 0 = assetId for special entries
index integer DEFAULT nextval(( 'bcu_egcu_relay_infos_index_seq'::text)::regclass), -- Index of Relay
name text, -- Name of relay
description text, -- description of relay
properties text -- properties of relay
);
COMMENT ON TABLE bcu_egcu_relay_infos IS 'EGCU-Relay-Names';
COMMENT ON COLUMN bcu_egcu_relay_infos.asset_id IS '0 = default for all EGCUs &gt, 0 = assetId for special entries';
COMMENT ON COLUMN bcu_egcu_relay_infos.index IS 'Index of Relay';
COMMENT ON COLUMN bcu_egcu_relay_infos.name IS 'Name of relay';
COMMENT ON COLUMN bcu_egcu_relay_infos.description IS 'description of relay';
COMMENT ON COLUMN bcu_egcu_relay_infos.properties IS 'properties of relay';
-- Create sequence(s)
CREATE SEQUENCE IF NOT EXISTS bcu_egcu_relay_infos_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS bcu_egcu_relay_infos_index_seq INCREMENT 1 START 0 MINVALUE 0;
-- Create primary keys
ALTER TABLE IF EXISTS bcu_egcu_relay_infos ADD CONSTRAINT PK_bcu_egcu_relay_infos_id PRIMARY KEY (id);
-- Indexes
ALTER TABLE bcu_egcu_relay_infos ADD CONSTRAINT UQ_bcu_egcu_relay_infos_id UNIQUE (id);
ALTER TABLE bcu_egcu_relay_infos ADD CONSTRAINT UQ_bcu_egcu_relay_infos_index UNIQUE (index);
ALTER TABLE bcu_egcu_relay_infos ADD CONSTRAINT UQ_bcu_egcu_relay_infos_name UNIQUE (name);
COMMIT;
@@ -0,0 +1,23 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add values in table asm.egcu_relay_info (SVN 53405)
-- PROJECT: Guez
-- DATE: 2021-06-23
-- VERSION: 1.15
-------------------------------------------------------------------------
-- GLOBAL: ASM;
BEGIN;
-- EGCU Relay Infos Note: Description and Properties available but unused, Don't insert unused relays!
INSERT INTO asm.asm_egcu_relay_info(id, relay_id, name) VALUES (1, 0, 'Lampe');
INSERT INTO asm.asm_egcu_relay_info(id, relay_id, name) VALUES (2, 1, 'Heizung');
INSERT INTO asm.asm_egcu_relay_info(id, relay_id, name, properties) VALUES (3, 2, 'Nebel', '{"allowPermanentOn":false}');
ALTER SEQUENCE asm.asm_egcu_relay_info_id_seq RESTART WITH 4;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+639
View File
@@ -0,0 +1,639 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: update values in PDM (SVN 53828) - gear_type_charge_type, building_charge_effect, charge_type Nebel
-- PROJECT: Guez
-- DATE: 2021-03-25
-- VERSION: 1.16
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
-- pdm_gear_type
DELETE FROM pdm_gear_type WHERE id = 1301;
-- pdm_charge_type
--UPDATE pdm_charge_type SET name = 'Nebel', short_name = 'Nebel' WHERE id = 375;
--DELETE FROM pdm_charge_type WHERE id = 385;
-- pdm_translation
DELETE FROM pdm_translation WHERE translation = 'Aerial Ordnance';
--DELETE FROM pdm_translation WHERE key = 'Nebel Art';
--DELETE FROM pdm_translation WHERE key = 'Nebel Mrs';
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'ChargeType', 'Nebel', 'Smoke');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'shortName', 'ChargeType', 'Nebel', 'Smoke');
-- pdm_gear_type_charge_type;
DELETE FROM pdm_gear_type_charge_type;
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (101, 311, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (101, 312, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (101, 313, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (101, 314, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (101, 315, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (201, 321, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (401, 341, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (401, 342, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (401, 343, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (501, 211, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (601, 211, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (501, 212, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (601, 212, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (501, 213, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (601, 213, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (501, 214, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (601, 214, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (501, 215, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (601, 215, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (501, 216, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (601, 216, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (701, 371, 29650);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (701, 372, 29650);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (701, 373, 25190);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (701, 374, 26160);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (701, 375, 25190);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (801, 381, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (801, 382, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1101, 411, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1101, 412, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1101, 413, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1201, 421, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 1, 2500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2, 3500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 3, 4500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 4, 3500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 5, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 6, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 7, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 8, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 9, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 10, 1000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 11, 800);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 12, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 13, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 14, 3500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 15, 1975);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 16, 400);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 17, 3000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 18, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 19, 400);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 20, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 21, 1000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 22, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 23, 1000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 24, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 25, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 26, 1000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 27, 1000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 28, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 29, 1850);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 30, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 31, 400);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 32, 400);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 33, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 34, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 35, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 36, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 37, 1850);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 38, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 39, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 40, 3000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 41, 1250);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 42, 3000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 43, 1850);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 44, 3000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 45, 400);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 48, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 49, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1033, 50, 50);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1025, 51, 1000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 52, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 53, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1019, 54, 1850);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 55, 4);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1017, 56, 500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 57, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1026, 58, 1000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 59, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1035, 60, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 61, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 62, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 63, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1019, 64, 1850);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 65, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1033, 66, 50);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1021, 67, 350);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 68, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 69, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 70, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1019, 71, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1022, 72, 350);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1021, 73, 350);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1021, 74, 350);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1018, 75, 150);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1020, 76, 50);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 77, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 78, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 79, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 471, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 472, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 473, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 474, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 475, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 476, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 477, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 478, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 479, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 480, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 481, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 482, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 483, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1701, 484, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2001, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2002, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2003, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2004, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2005, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2006, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2007, 800);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2008, 800);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2009, 1000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2010, 1200);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2011, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2012, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2013, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2014, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2015, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2016, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2017, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2018, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2019, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2020, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2021, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2022, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2023, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2024, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2025, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2026, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2027, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2028, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2029, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2030, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2031, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2032, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2033, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2034, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2035, 1000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2036, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2037, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2038, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2039, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2040, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2041, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2042, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2043, 3000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2044, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2045, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2046, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2047, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2048, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2049, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2050, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2051, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2052, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2053, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2054, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2055, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2056, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2057, 450);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2058, 400);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2059, 350);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2060, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2061, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2062, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2063, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2064, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2065, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2066, 350);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2067, 350);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2068, 350);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2069, 400);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2070, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2071, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2072, 400);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2073, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2074, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2075, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2076, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2077, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2078, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2079, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2080, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2081, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2082, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2083, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2084, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2085, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2086, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2087, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2088, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2089, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2090, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2091, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2092, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2093, 3000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2094, 3000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2095, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2096, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2097, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2098, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2099, 2000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2100, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2101, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2102, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2103, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2104, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2105, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2106, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2107, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2108, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2109, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2110, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2111, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2112, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2113, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2114, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2115, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2116, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2117, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2118, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2119, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2120, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2121, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2122, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2123, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2124, 27000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2125, 8000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2126, 8000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2127, 8000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2128, 8000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2129, 3750);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2130, 3750);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2131, 600);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2132, 3750);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2133, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2134, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2135, 1500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2136, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2137, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2138, 3000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2139, 4300);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2140, 4300);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2141, 1975);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2142, 3000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2143, 2500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2144, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2145, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2146, 800);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2147, 800);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2148, 600);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2149, 12000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2150, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2151, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2152, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2153, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2154, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2155, 7000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2156, 7000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2157, 7000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2158, 7000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2159, 1800);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2160, 2500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2161, 2500);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2162, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2163, 4000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2164, 8000);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2165, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2166, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2167, 350);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2168, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2169, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2170, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2171, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2172, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2173, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2174, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2175, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2176, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2177, 50);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2178, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2179, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2180, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2181, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2182, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2183, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2184, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2185, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2186, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2187, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2188, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2189, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2190, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2191, NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1000, 2192, NULL);
-- from update 1.28
--UPDATE pdm.pdm_gear_type_charge_type SET max_range=1000 WHERE gear_type_id = 1000 AND charge_type_id = 2035;
--UPDATE pdm.pdm_gear_type_charge_type SET max_range=2000 WHERE gear_type_id = 1000 AND charge_type_id = 2036;
-- pdm_building_charge_effect
-- deleting 375, 385 was enough, but let's make sure we have the latest values
-- DELETE FROM pdm.pdm_building_charge_effect WHERE charge_type_id IN (375, 385);
DELETE FROM pdm.pdm_building_charge_effect;
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (1, 1, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (2, 2, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (3, 3, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (4, 4, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (5, 5, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (6, 6, 10, 10, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (7, 7, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (8, 8, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (9, 9, 10, 10, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (10, 10, 5, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (11, 11, 0, 0, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (12, 12, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (13, 13, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (14, 14, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (15, 15, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (16, 16, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (17, 17, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (18, 18, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (19, 19, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (20, 20, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (21, 21, 5, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (22, 22, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (23, 23, 0, 0, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (24, 24, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (25, 25, 10, 50, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (26, 26, 10, 10, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (27, 27, 10, 0, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (28, 28, 10, 1, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (29, 29, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (30, 30, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (31, 31, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (32, 32, 10, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (33, 33, 1, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (34, 34, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (35, 35, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (36, 36, 10, 0, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (37, 37, 5, 5, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (38, 38, 10, 5, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (39, 39, 10, 5, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (40, 40, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (41, 41, 5, 0, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (42, 42, 10, 0, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (43, 43, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (44, 44, 5, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (45, 45, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (46, 48, 10, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (47, 49, 50, 10, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (48, 50, 10, 5000, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (49, 51, 0, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (50, 52, 5000, 5000, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (51, 53, 10, 5, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (52, 54, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (53, 55, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (54, 56, 1, 1, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (55, 57, 1, 1, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (56, 58, 1, 1, 6, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (57, 59, 1, 1, 6, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (58, 60, 10, 150, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (59, 61, 10, 150, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (60, 62, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (61, 63, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (62, 64, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (63, 65, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (64, 66, 5, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (65, 67, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (66, 68, 10, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (67, 69, 50, 10, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (68, 70, 100, 100, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (69, 71, 300, 300, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (70, 72, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (71, 73, 10, 10, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (72, 74, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (73, 75, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (74, 76, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (75, 77, 5, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (76, 78, 0, 0, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (77, 79, 300, 300, NULL, false, false);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (78, 371, 100, 150, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (79, 372, 50, 100, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (80, 373, 50, 50, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (81, 374, 0, 0, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (83, 381, 100, 150, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (84, 382, 10, 5, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (86, 471, 10, 5, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (87, 472, 50, 100, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (88, 474, 50, 100, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (89, 476, 50, 100, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (90, 482, 100, 200, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (91, 2001, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (92, 2002, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (93, 2003, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (94, 2004, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (95, 2005, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (96, 2006, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (97, 2007, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (98, 2008, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (99, 2009, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (100, 2010, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (101, 2011, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (102, 2012, 5, 5, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (103, 2013, 1, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (104, 2014, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (105, 2015, 10, 10, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (106, 2016, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (107, 2017, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (108, 2018, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (109, 2019, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (110, 2020, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (111, 2021, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (112, 2022, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (113, 2023, 5, 1, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (114, 2024, 0, 0, 19, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (115, 2025, 5, 0, 19, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (116, 2026, 10, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (117, 2027, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (118, 2028, 10, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (119, 2029, 10, 5, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (120, 2030, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (121, 2031, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (122, 2032, 25, 25, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (123, 2033, 25, 25, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (124, 2034, 5, 0, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (125, 2035, 15, 15, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (126, 2036, 15, 15, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (127, 2037, 10, 0, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (128, 2038, 10, 5, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (129, 2039, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (130, 2040, 10, 0, 12, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (131, 2041, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (132, 2042, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (133, 2043, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (134, 2044, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (135, 2045, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (136, 2046, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (137, 2047, 10, 5, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (138, 2048, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (139, 2049, 10, 5, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (140, 2050, 10, 0, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (141, 2051, 10, 10, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (142, 2052, 10, 10, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (143, 2053, 25, 25, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (144, 2054, 10, 5, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (145, 2055, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (146, 2056, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (147, 2057, 150, 150, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (148, 2058, 150, 150, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (149, 2059, 150, 300, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (150, 2060, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (151, 2061, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (152, 2062, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (153, 2063, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (154, 2064, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (155, 2065, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (156, 2066, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (157, 2067, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (158, 2068, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (159, 2069, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (160, 2070, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (161, 2071, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (162, 2072, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (163, 2073, 10, 10, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (164, 2074, 10, 10, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (165, 2075, 10, 50, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (166, 2076, 10, 10, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (167, 2077, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (168, 2078, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (169, 2079, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (170, 2080, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (171, 2081, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (172, 2082, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (173, 2083, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (174, 2084, 10, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (175, 2085, 10, 0, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (176, 2086, 10, 0, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (177, 2087, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (178, 2088, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (179, 2089, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (180, 2090, 150, 150, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (181, 2091, 150, 1000, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (182, 2092, 150, 100, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (183, 2093, 150, 300, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (184, 2094, 150, 300, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (185, 2095, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (186, 2096, 10, 10, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (187, 2097, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (188, 2098, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (189, 2099, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (190, 2100, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (191, 2101, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (192, 2102, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (193, 2103, 150, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (194, 2104, 150, 1000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (195, 2105, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (196, 2106, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (197, 2107, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (198, 2108, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (199, 2109, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (200, 2110, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (201, 2111, 300, 1000, 4, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (202, 2112, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (203, 2113, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (204, 2114, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (205, 2115, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (206, 2116, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (207, 2117, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (208, 2118, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (209, 2119, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (210, 2120, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (211, 2121, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (212, 2122, 10, 10, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (213, 2123, 10, 10, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (214, 2124, 100, 200, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (215, 2125, 300, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (216, 2126, 300, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (217, 2127, 300, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (218, 2128, 300, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (219, 2129, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (220, 2130, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (221, 2131, 150, 1000, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (222, 2132, 150, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (223, 2133, 150, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (224, 2134, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (225, 2135, 150, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (226, 2136, 300, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (227, 2137, 300, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (228, 2138, 10, 10, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (229, 2139, 150, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (230, 2140, 150, 300, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (231, 2141, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (232, 2142, 10, 150, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (233, 2143, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (234, 2144, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (235, 2145, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (236, 2146, 10, 50, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (237, 2147, 10, 50, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (238, 2148, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (239, 2149, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (240, 2150, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (241, 2151, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (242, 2152, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (243, 2153, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (244, 2154, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (245, 2155, 150, 150, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (246, 2156, 150, 150, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (247, 2157, 150, 150, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (248, 2158, 150, 150, 18, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (249, 2159, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (250, 2160, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (251, 2161, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (252, 2162, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (253, 2163, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (254, 2164, 150, 300, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (255, 2165, 150, 1000, 14, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (256, 2166, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (257, 2167, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (258, 2168, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (259, 2169, 0, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (260, 2170, 10, 0, 3, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (261, 2171, 150, 10, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (262, 2172, 300, 300, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (263, 2173, 5000, 5000, 5, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (264, 2174, 150, 150, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (265, 2175, 5, 0, 17, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (266, 2176, 10, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (267, 2177, 1, 0, 11, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (268, 2178, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (269, 2179, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (270, 2180, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (271, 2181, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (272, 2182, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (273, 2183, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (274, 2184, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (275, 2185, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (276, 2186, 5000, 5000, 10, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (277, 2187, 0, 0, NULL, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (278, 2188, 10, 10, 17, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (279, 2189, 10, 0, 9, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (280, 2190, 10, 0, 9, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (281, 2191, 5, 0, 13, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (282, 2192, 5, 0, 13, true, true);
ALTER SEQUENCE pdm.pdm_building_charge_effect_id_seq RESTART WITH 283;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,28 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: New operator rights EgcuMonitorShow and EgcuRoomsEdit
-- PROJECT: Guez
-- DATE: 2021-06-29
-- VERSION: 1.17
-------------------------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
--- Base: 738263040, EgcuMonitorShow - 738263047 = 0x2c010007
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (738263047, 'EgcuMonitorShow', 'Show EgcuMonitor');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (738197509, 'EgcuMonitorShow', 'Show EgcuMonitor', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (738197509, 738263047); -- group_id is: 738197509 = 0x2c000005
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (738263040, 738197509); -- Service Monitors - Participants
--- Base: 738263040, EgcuRoomsEdit - 738263048 = 0x2c010008
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (738263048, 'EgcuRoomsEdit', 'Edit the rooms belonging to one segment.');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (738197510, 'EgcuRoomsEdit', 'Edit the rooms belonging to one segment.', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (738197510, 738263048); -- group_id is: 738197510 = 0x2c000006
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (738263040, 738197510); -- Service Monitors - Participants
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,461 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: update dis_entity in PDM and generate codes 2xxx, 4xxx etc.
-- PROJECT: Guez
-- DATE: 2021-07-26
-- VERSION: 1.18
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
-- Direct Fire with alterations such as "Burst of Fire", "Unarmed", etc.
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4001, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.8.225.2.16.0.5', properties FROM pdm.pdm_charge_type WHERE id = 2001;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4002, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.8.225.2.16.0.6', properties FROM pdm.pdm_charge_type WHERE id = 2002;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4003, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.8.225.2.16.0.7', properties FROM pdm.pdm_charge_type WHERE id = 2003;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4004, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.8.225.2.16.0.8', properties FROM pdm.pdm_charge_type WHERE id = 2004;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4007, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.8.225.2.16.0.9', properties FROM pdm.pdm_charge_type WHERE id = 2007;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4008, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.8.225.2.16.0.10', properties FROM pdm.pdm_charge_type WHERE id = 2008;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4009, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.8.225.2.16.0.11', properties FROM pdm.pdm_charge_type WHERE id = 2009;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4010, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.8.225.2.16.0.12', properties FROM pdm.pdm_charge_type WHERE id = 2010;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4015, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.2.222.2.11.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2015;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4016, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.2.222.2.11.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2016;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4017, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.2.222.2.11.0.2', properties FROM pdm.pdm_charge_type WHERE id = 2017;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4018, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.2.222.2.11.0.3', properties FROM pdm.pdm_charge_type WHERE id = 2018;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4019, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.9.225.2.9.0.4', properties FROM pdm.pdm_charge_type WHERE id = 2019;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4020, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.9.225.2.9.0.5', properties FROM pdm.pdm_charge_type WHERE id = 2020;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4021, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.9.225.2.10.0.10', properties FROM pdm.pdm_charge_type WHERE id = 2021;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4034, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.9.225.2.10.0.11', properties FROM pdm.pdm_charge_type WHERE id = 2034;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4035, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.9.225.2.10.0.12', properties FROM pdm.pdm_charge_type WHERE id = 2035;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4036, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.9.225.2.14.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2036;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4037, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.9.225.2.14.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2037;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4038, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.2.222.1.6.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2038;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4040, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.9.222.1.11.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2040;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4041, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.2.222.1.10.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2041;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4042, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.2.222.1.11.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2042;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4044, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.2.222.1.13.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2044;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 4045, name || ' (BoF)', short_name || ' (BoF)', predefined_name, '2.2.222.1.14.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2045;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6022, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.222.1.14.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2022;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6024, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.222.1.14.0.2', properties FROM pdm.pdm_charge_type WHERE id = 2024;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6025, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.222.1.16.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2025;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6026, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.222.1.16.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2026;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6027, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.222.1.26.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2027;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6030, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.222.1.45.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2030;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6031, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.4.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2031;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6036, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.3.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2036;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6039, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.3.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2039;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6040, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.16.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2040;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6043, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.16.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2043;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6044, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.1.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2044;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6045, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.1.4.0', properties FROM pdm.pdm_charge_type WHERE id = 2045;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6047, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.1.4.1', properties FROM pdm.pdm_charge_type WHERE id = 2047;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6048, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.1.5.0', properties FROM pdm.pdm_charge_type WHERE id = 2048;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6051, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.1.5.1', properties FROM pdm.pdm_charge_type WHERE id = 2051;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6053, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2053;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6055, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.2.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2055;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6057, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.8.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2057;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6060, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.225.1.8.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2060;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6065, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.4.225.1.6.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2065;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6069, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.71.1.3.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2069;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6077, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.71.1.3.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2077;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6081, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.71.1.4.2.0', properties FROM pdm.pdm_charge_type WHERE id = 2081;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6085, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.71.1.4.3.0', properties FROM pdm.pdm_charge_type WHERE id = 2085;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6086, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.224.1.5.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2086;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6091, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.224.1.5.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2091;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6096, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.224.1.5.0.2', properties FROM pdm.pdm_charge_type WHERE id = 2096;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6097, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.2.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2097;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6103, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.2.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2103;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6105, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.71.1.2.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2105;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6107, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.224.1.9.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2107;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6110, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.1.1.0', properties FROM pdm.pdm_charge_type WHERE id = 2110;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6121, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.1.1.3', properties FROM pdm.pdm_charge_type WHERE id = 2121;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6170, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.1.2.0', properties FROM pdm.pdm_charge_type WHERE id = 2170;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6171, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.1.2.4', properties FROM pdm.pdm_charge_type WHERE id = 2171;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6172, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.1.2.5', properties FROM pdm.pdm_charge_type WHERE id = 2172;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6173, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.1.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2173;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6175, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.1.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2175;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6176, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.1.3.0', properties FROM pdm.pdm_charge_type WHERE id = 2176;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 6191, name || ' (AB)', short_name || ' (AB)', predefined_name, '2.2.205.1.1.3.1', properties FROM pdm.pdm_charge_type WHERE id = 2191;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8056, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.105.1.3.0.9', properties FROM pdm.pdm_charge_type WHERE id = 2056;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8058, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.105.1.3.0.10', properties FROM pdm.pdm_charge_type WHERE id = 2058;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8059, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.105.1.3.0.11', properties FROM pdm.pdm_charge_type WHERE id = 2059;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8066, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.105.1.3.0.12', properties FROM pdm.pdm_charge_type WHERE id = 2066;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8070, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.105.1.3.0.13', properties FROM pdm.pdm_charge_type WHERE id = 2070;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8112, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.105.1.3.0.14', properties FROM pdm.pdm_charge_type WHERE id = 2112;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8113, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.197.1.1.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2113;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8114, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2114;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8115, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.1.225.2.3.5.6', properties FROM pdm.pdm_charge_type WHERE id = 2115;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8116, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.9.225.2.7.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2116;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8117, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.9.225.2.11.0.3', properties FROM pdm.pdm_charge_type WHERE id = 2117;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8118, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2118;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8119, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2119;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8120, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2120;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8121, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2121;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8125, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.222.3.8.0.2', properties FROM pdm.pdm_charge_type WHERE id = 2125;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8126, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.9.225.2.85.0.5', properties FROM pdm.pdm_charge_type WHERE id = 2126;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8127, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.9.225.2.85.0.6', properties FROM pdm.pdm_charge_type WHERE id = 2127;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8128, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.9.225.2.85.7.3', properties FROM pdm.pdm_charge_type WHERE id = 2128;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8129, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2129;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8130, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2130;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8131, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2131;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8132, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2132;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8133, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2133;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8134, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2134;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8135, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2135;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8136, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2136;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8137, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2137;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8139, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2139;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8140, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.1.225.1.5.0.0', properties FROM pdm.pdm_charge_type WHERE id = 2140;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8141, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2141;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8142, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2142;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8143, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2143;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8144, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.0.0.0.0.0.1', properties FROM pdm.pdm_charge_type WHERE id = 2144;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8145, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.9.225.2.81.0.2', properties FROM pdm.pdm_charge_type WHERE id = 2145;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8146, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.9.225.2.81.0.3', properties FROM pdm.pdm_charge_type WHERE id = 2146;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8147, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.2.0.6', properties FROM pdm.pdm_charge_type WHERE id = 2147;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8148, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.2.0.7', properties FROM pdm.pdm_charge_type WHERE id = 2148;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8149, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.9.225.2.81.0.4', properties FROM pdm.pdm_charge_type WHERE id = 2149;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8150, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.9.225.2.81.0.5', properties FROM pdm.pdm_charge_type WHERE id = 2150;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8151, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.2.0.8', properties FROM pdm.pdm_charge_type WHERE id = 2151;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8152, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.2.0.9', properties FROM pdm.pdm_charge_type WHERE id = 2152;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8153, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.5.1.8', properties FROM pdm.pdm_charge_type WHERE id = 2153;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8154, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.5.1.9', properties FROM pdm.pdm_charge_type WHERE id = 2154;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8156, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.5.1.10', properties FROM pdm.pdm_charge_type WHERE id = 2156;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8157, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.5.1.11', properties FROM pdm.pdm_charge_type WHERE id = 2157;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8158, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.5.3.8', properties FROM pdm.pdm_charge_type WHERE id = 2158;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8159, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.5.3.9', properties FROM pdm.pdm_charge_type WHERE id = 2159;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8160, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.8.225.2.5.3.10', properties FROM pdm.pdm_charge_type WHERE id = 2160;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8161, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.224.2.1.0.16', properties FROM pdm.pdm_charge_type WHERE id = 2161;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8162, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.224.2.1.0.17', properties FROM pdm.pdm_charge_type WHERE id = 2162;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8163, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.224.2.1.0.18', properties FROM pdm.pdm_charge_type WHERE id = 2163;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 8164, name || ' (UnA)', short_name || ' (UnA)', predefined_name, '2.2.224.2.1.0.19', properties FROM pdm.pdm_charge_type WHERE id = 2164;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 12136, name || ' (FF)', short_name || ' (FF)', predefined_name, '2.2.224.2.1.0.20', properties FROM pdm.pdm_charge_type WHERE id = 2136;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 12137, name || ' (FF)', short_name || ' (FF)', predefined_name, '2.2.224.2.1.0.21', properties FROM pdm.pdm_charge_type WHERE id = 2137;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 12138, name || ' (FF)', short_name || ' (FF)', predefined_name, '2.2.224.2.1.0.22', properties FROM pdm.pdm_charge_type WHERE id = 2138;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 12145, name || ' (FF)', short_name || ' (FF)', predefined_name, '2.2.224.2.1.0.23', properties FROM pdm.pdm_charge_type WHERE id = 2145;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 12160, name || ' (FF)', short_name || ' (FF)', predefined_name, '2.2.224.2.1.0.24', properties FROM pdm.pdm_charge_type WHERE id = 2160;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 12161, name || ' (FF)', short_name || ' (FF)', predefined_name, '2.2.224.2.1.0.25', properties FROM pdm.pdm_charge_type WHERE id = 2161;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 12163, name || ' (FF)', short_name || ' (FF)', predefined_name, '2.9.225.2.4.10.0', properties FROM pdm.pdm_charge_type WHERE id = 2163;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 22010, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.8.225.2.14.0.2', properties FROM pdm.pdm_charge_type WHERE id = 2010;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 22017, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.8.225.2.14.0.3', properties FROM pdm.pdm_charge_type WHERE id = 2017;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 22059, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.1.225.2.3.5.7', properties FROM pdm.pdm_charge_type WHERE id = 2059;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 22097, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.1.225.2.3.5.8', properties FROM pdm.pdm_charge_type WHERE id = 2097;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 22129, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.9.225.2.4.23.6', properties FROM pdm.pdm_charge_type WHERE id = 2129;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 22184, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.9.225.2.4.23.7', properties FROM pdm.pdm_charge_type WHERE id = 2184;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 22185, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.2.224.2.1.0.26', properties FROM pdm.pdm_charge_type WHERE id = 2185;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 22186, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.2.224.2.1.0.27', properties FROM pdm.pdm_charge_type WHERE id = 2186;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 22187, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.2.224.2.1.0.28', properties FROM pdm.pdm_charge_type WHERE id = 2187;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 23047, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.2.224.2.1.0.29', properties FROM pdm.pdm_charge_type WHERE id = 2047;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 23058, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.2.224.2.1.0.30', properties FROM pdm.pdm_charge_type WHERE id = 2058;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 23069, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.2.224.2.1.0.31', properties FROM pdm.pdm_charge_type WHERE id = 2069;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 23070, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.2.224.2.1.0.32', properties FROM pdm.pdm_charge_type WHERE id = 2070;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 23072, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.2.224.2.1.0.33', properties FROM pdm.pdm_charge_type WHERE id = 2072;
INSERT INTO pdm.pdm_charge_type (id, name, short_name, predefined_name, dis_entity, properties) SELECT 23100, name || ' (STS)', short_name || ' (STS)', predefined_name, '2.9.225.2.84.0.5', properties FROM pdm.pdm_charge_type WHERE id = 2100;
-- Updates to existing Charge Types (OSAG)
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.0' WHERE id=1;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.1' WHERE id=2;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.2' WHERE id=3;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.3' WHERE id=4;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.2.10.1.0' WHERE id=5;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.2.9.6.0' WHERE id=6;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.23.1.0' WHERE id=7;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.2.0' WHERE id=8;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.206.2.1.8.0' WHERE id=9;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.0' WHERE id=10;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.5' WHERE id=11;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=12;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.1' WHERE id=13;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.1' WHERE id=14;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.1.0.0' WHERE id=15;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.5.0' WHERE id=16;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.2.1.0' WHERE id=17;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.1.2.0' WHERE id=18;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=19;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=20;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.1' WHERE id=21;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.2.2.8.0' WHERE id=22;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.222.2.2.5.0' WHERE id=23;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.78.2.9.2.0' WHERE id=24;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.21.3.0' WHERE id=25;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.5.0' WHERE id=26;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.2.0' WHERE id=27;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.45.2.23.1.0' WHERE id=28;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.0' WHERE id=29;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.1.0' WHERE id=30;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.0' WHERE id=31;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.206.2.1.1.0' WHERE id=32;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.206.2.1.1.1' WHERE id=33;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.2' WHERE id=34;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.2' WHERE id=35;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.1.0' WHERE id=36;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.222.2.1.1.0' WHERE id=37;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.3' WHERE id=38;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.78.2.9.2.1' WHERE id=39;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.2.1.1' WHERE id=40;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.205.2.1.1.0' WHERE id=41;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.4' WHERE id=42;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.1' WHERE id=43;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.2.1.2' WHERE id=44;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.7.0' WHERE id=45;
-- 46/47 unused
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=48;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=49;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.0' WHERE id=50;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.81.0.0' WHERE id=51;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=52;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.0.0' WHERE id=53;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.0.0' WHERE id=54;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=55;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.1.0.0' WHERE id=56;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=57;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.0' WHERE id=58;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=59;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.3.8.0.0' WHERE id=60;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.3.8.0.1' WHERE id=61;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=62;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=63;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.0' WHERE id=64;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=65;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.1' WHERE id=66;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=67;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=68;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=69;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=70;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.1' WHERE id=71;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.1' WHERE id=72;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.0.1' WHERE id=73;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.0.2' WHERE id=74;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.78.2.4.0.0' WHERE id=75;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.222.2.3.0.0' WHERE id=76;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.4.0.0' WHERE id=77;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.2' WHERE id=78;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.0.3' WHERE id=79;
-- Updates to existing Charge Types (ULEIS)
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.0' WHERE id=2001;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.81.0.1' WHERE id=2002;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.2' WHERE id=2003;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.3' WHERE id=2004;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.1' WHERE id=2005;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.2' WHERE id=2006;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.3' WHERE id=2007;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.4' WHERE id=2008;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.4' WHERE id=2009;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.5' WHERE id=2010;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.3' WHERE id=2011;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.2' WHERE id=2012;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.3' WHERE id=2013;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.4' WHERE id=2014;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.4' WHERE id=2015;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.5' WHERE id=2016;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.6' WHERE id=2017;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.7' WHERE id=2018;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.5' WHERE id=2019;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.6' WHERE id=2020;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.7' WHERE id=2021;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.0' WHERE id=2022;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.1' WHERE id=2023;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.14.0.0' WHERE id=2024;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.14.0.1' WHERE id=2025;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.2' WHERE id=2026;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.3' WHERE id=2027;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.4' WHERE id=2028;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.5' WHERE id=2029;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.2' WHERE id=2030;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.3' WHERE id=2031;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.4' WHERE id=2032;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.5' WHERE id=2033;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.0' WHERE id=2034;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.1' WHERE id=2035;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.2' WHERE id=2036;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.3' WHERE id=2037;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.4' WHERE id=2038;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.5' WHERE id=2039;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.6' WHERE id=2040;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.7' WHERE id=2041;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.8' WHERE id=2042;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.9' WHERE id=2043;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.10' WHERE id=2044;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.11' WHERE id=2045;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.12' WHERE id=2046;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.13' WHERE id=2047;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.14' WHERE id=2048;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.15' WHERE id=2049;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.0' WHERE id=2050;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.1' WHERE id=2051;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.2' WHERE id=2052;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.3' WHERE id=2053;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.4' WHERE id=2054;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.39.0.0' WHERE id=2055;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.39.0.1' WHERE id=2056;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.1' WHERE id=2057;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.2' WHERE id=2058;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.3' WHERE id=2059;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.4' WHERE id=2060;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.5' WHERE id=2061;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.6' WHERE id=2062;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.7' WHERE id=2063;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.8' WHERE id=2064;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.0' WHERE id=2065;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.1' WHERE id=2066;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.2' WHERE id=2067;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.3' WHERE id=2068;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.4' WHERE id=2069;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.5' WHERE id=2070;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.78.2.9.0.0' WHERE id=2071;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.78.2.9.0.1' WHERE id=2072;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.5.0.0' WHERE id=2073;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.5.0.1' WHERE id=2074;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.5.0.2' WHERE id=2075;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.0' WHERE id=2076;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.1' WHERE id=2077;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.2' WHERE id=2078;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.3' WHERE id=2079;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.0' WHERE id=2080;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.1' WHERE id=2081;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.2' WHERE id=2082;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.3' WHERE id=2083;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.4' WHERE id=2084;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.5' WHERE id=2085;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.6' WHERE id=2086;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.7' WHERE id=2087;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.8' WHERE id=2088;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.9' WHERE id=2089;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.0' WHERE id=2090;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.1' WHERE id=2091;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.2' WHERE id=2092;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.5' WHERE id=2093;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.6' WHERE id=2094;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.7' WHERE id=2095;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.8' WHERE id=2096;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.9' WHERE id=2097;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.10' WHERE id=2098;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.11' WHERE id=2099;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.12' WHERE id=2100;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.11.0.0' WHERE id=2101;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.11.0.1' WHERE id=2102;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.11.0.2' WHERE id=2103;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.11.0.3' WHERE id=2104;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.4' WHERE id=2105;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.5' WHERE id=2106;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.10' WHERE id=2107;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.11' WHERE id=2108;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.12' WHERE id=2109;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.14.0.0' WHERE id=2110;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.14.0.1' WHERE id=2111;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.6.0.0' WHERE id=2112;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.222.1.11.0.0' WHERE id=2113;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.10.0.0' WHERE id=2114;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.11.0.0' WHERE id=2115;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.13.0.0' WHERE id=2116;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.0' WHERE id=2117;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.1' WHERE id=2118;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.2' WHERE id=2119;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.16.0.0' WHERE id=2120;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.16.0.1' WHERE id=2121;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.26.0.0' WHERE id=2122;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.45.0.0' WHERE id=2123;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.4.0.0' WHERE id=2124;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.3.0.0' WHERE id=2125;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.3.0.1' WHERE id=2126;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.16.0.0' WHERE id=2127;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.16.0.1' WHERE id=2128;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.0.0' WHERE id=2129;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.4.0' WHERE id=2130;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.4.1' WHERE id=2131;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.5.0' WHERE id=2132;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.5.1' WHERE id=2133;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2134;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.2.0.0' WHERE id=2135;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.8.0.0' WHERE id=2136;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.8.0.1' WHERE id=2137;
UPDATE pdm.pdm_charge_type SET dis_entity='2.4.225.1.6.0.0' WHERE id=2138;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.3.0.0' WHERE id=2139;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.3.0.1' WHERE id=2140;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.4.2.0' WHERE id=2141;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.4.3.0' WHERE id=2142;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.0' WHERE id=2143;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.1' WHERE id=2144;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.2' WHERE id=2145;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.2.0.0' WHERE id=2146;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.2.0.1' WHERE id=2147;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.2.0.0' WHERE id=2148;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.9.0.0' WHERE id=2149;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.0' WHERE id=2150;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.3' WHERE id=2151;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.0' WHERE id=2152;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.4' WHERE id=2153;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.5' WHERE id=2154;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.0.0' WHERE id=2155;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.0.1' WHERE id=2156;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.3.0' WHERE id=2157;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.3.1' WHERE id=2158;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.9' WHERE id=2159;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.10' WHERE id=2160;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.11' WHERE id=2161;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.12' WHERE id=2162;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.13' WHERE id=2163;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.14' WHERE id=2164;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.197.1.1.0.0' WHERE id=2165;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2166;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.6' WHERE id=2167;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.7.0.0' WHERE id=2168;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.3' WHERE id=2169;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2170;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2171;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2172;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2173;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.3.8.0.2' WHERE id=2174;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.5' WHERE id=2175;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.6' WHERE id=2176;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.7.3' WHERE id=2177;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2178;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2179;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2180;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2181;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2182;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2183;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2184;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2185;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2186;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2187;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.1.5.0.0' WHERE id=2188;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2189;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2190;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2191;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2192;
-- Artillery
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.8.18.0' WHERE id=381;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.71.2.13.0.0' WHERE id=382;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.222.2.19.1.0' WHERE id=371;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.222.2.19.10.0' WHERE id=372;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.222.2.19.0.0' WHERE id=374;
UPDATE pdm.pdm_charge_type SET dis_entity='1.1.45.4.3.0.0' WHERE id=373;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.73.0.0' WHERE id=482;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.74.0.0' WHERE id=483;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.75.0.0' WHERE id=484;
-- Nuclear / Chemical
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.6.3.3.0' WHERE id=343; -- Warning: DIS Code Used twice "Chemical Persistant" = VX
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.6.3.3.0' WHERE id=342; -- Warning: DIS Code Used twice "Chemical Persistant" = S-Lost
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.6.3.3.1' WHERE id=341;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.6.3.1.0' WHERE id=321; -- Warnung: Used twice Nuclear Persistant
-- UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.6.3.1.1' WHERE id=321; -- Warning: Used twice Nuclear Drifting (not implemented on RHM side)
-- Mines // Not yet complete...
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.3.1.1.0' WHERE id=214;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.3.3.0.0' WHERE id=215;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.3.3.0.0' WHERE id=216;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,28 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: update PDM Gear Type fr Puma
-- PROJECT: Guez
-- DATE: 2021-08-09
-- VERSION: 1.19
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
INSERT INTO pdm.pdm_gear_type (id, tas_code, name, gear_class_id) VALUES (1082, 82, 'MK 30', 10);
INSERT INTO pdm.pdm_gear_type (id, tas_code, name, gear_class_id) VALUES (1084, 84, 'Koax MG', 10);
INSERT INTO pdm.pdm_gear_type (id, tas_code, name, gear_class_id) VALUES (1087, 87, 'MELLS', 10);
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'GearType', 'MK 30', 'MC 30');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'GearType', 'Koax MG', 'Coax MG');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'GearType', 'MELLS', 'MELLS');
INSERT INTO pdm.pdm_can_component_string (name, bit_mask, can_device_id, sub_device_id) VALUES ('AGDUS aktiv', 0, 31, -1);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,20 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: new indexes on eem_event table (on sample_time and event_type) to optimize search (SVN 54364)
-- PROJECT: Guez
-- DATE: 2021-08-12
-- VERSION: 1.20
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
CREATE INDEX IDX_eem_event_sample_time ON eem_event (sample_time);
CREATE INDEX IDX_eem_event_event_type_id ON eem_event (event_type_id);
COMMIT;
@@ -0,0 +1,38 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add ISM and EX BLD Bridge modifications
-- PROJECT: Guez
-- DATE: 2021-08-17
-- VERSION: 1.21
-------------------------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
INSERT INTO ism_structure_element_type (id, name) VALUES (11, 'Bridge');
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS rec_bridge_status DROP CONSTRAINT IF EXISTS PK_rec_bridge_status_rec_id CASCADE;
ALTER TABLE IF EXISTS rec_bridge_status DROP CONSTRAINT IF EXISTS IDX_rec_bridge_status_sample_time CASCADE;
DROP TABLE IF EXISTS rec_bridge_status CASCADE;
CREATE TABLE IF NOT EXISTS rec_bridge_status (
id integer,
name text,
is_deleted boolean,
is_used boolean,
sample_time bigint,
building_id integer,
status integer,
rec_id bigint DEFAULT nextval(( 'rec_bridge_status_rec_id_seq'::text)::regclass),
dds_is_alive boolean DEFAULT true,
insert_time bigint DEFAULT (extract(epoch from now()) * 1000)
);
COMMENT ON TABLE rec_bridge_status IS 'recorded data for topic BridgeStatus';
CREATE SEQUENCE IF NOT EXISTS rec_bridge_status_rec_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS rec_bridge_status ADD CONSTRAINT PK_rec_bridge_status_rec_id PRIMARY KEY (rec_id);
CREATE INDEX IDX_rec_bridge_status_sample_time ON rec_bridge_status (sample_time);
COMMIT;
@@ -0,0 +1,106 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add ISM changes from Resource Management branch
-- PROJECT: Guez
-- DATE: 2021-08-17
-- VERSION: 1.22
-------------------------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
ALTER TABLE IF EXISTS ism_mounting_point_plan DROP CONSTRAINT IF EXISTS FK_ism_mounting_point_plan_mounting_point_state_ism_mounting_po CASCADE;
ALTER TABLE IF EXISTS ism_mounting_point_schedule DROP CONSTRAINT IF EXISTS FK_ism_mounting_point_schedule_status_id_ism_schedule_status_id CASCADE;
ALTER TABLE IF EXISTS ism_schedule_status DROP CONSTRAINT IF EXISTS PK_ism_schedule_status_id CASCADE;
ALTER TABLE IF EXISTS ism_schedule_status_change DROP CONSTRAINT IF EXISTS PK_ism_schedule_status_change_id CASCADE;
ALTER TABLE IF EXISTS ism_schedule_status_change DROP CONSTRAINT IF EXISTS FK_ism_schedule_status_change_schedule_id_ism_mounting_point_sc CASCADE;
ALTER TABLE IF EXISTS ism_schedule_status_change DROP CONSTRAINT IF EXISTS FK_ism_schedule_status_change_schedule_status_id_ism_schedule_s CASCADE;
DROP TABLE IF EXISTS ism_schedule_status CASCADE;
DROP TABLE IF EXISTS ism_schedule_status_change CASCADE;
CREATE TABLE IF NOT EXISTS ism_schedule_status (
id integer DEFAULT nextval(( 'ism.ism_schedule_status_id_seq'::text)::regclass),
name text
);
CREATE TABLE IF NOT EXISTS ism_schedule_status_change (
id integer DEFAULT nextval(( 'ism.ism_schedule_status_change_id_seq'::text)::regclass),
schedule_id integer,
schedule_status_id integer,
changed_at bigint,
operator_id integer,
workstation_id integer
);
COMMENT ON TABLE ism_schedule_status_change IS 'instrumentation plan status changes';
ALTER TABLE ism_mounting_point_plan ADD COLUMN IF NOT EXISTS mounting_point_state integer DEFAULT 0;
COMMENT ON COLUMN ism_mounting_point_plan.mounting_point_state IS '(-1, 0, 1) - (Empty, Idle, Equipped)';
DELETE FROM ism_mounting_point_state WHERE id = -1;
INSERT INTO ism_mounting_point_state (id, name) VALUES (-1, 'Empty');
INSERT INTO ism_schedule_status (id, name) VALUES (0, 'Unknown');
INSERT INTO ism_schedule_status (id, name) VALUES (1, 'Created');
INSERT INTO ism_schedule_status (id, name) VALUES (2, 'Prepared');
INSERT INTO ism_schedule_status (id, name) VALUES (3, 'Activated');
INSERT INTO ism_schedule_status (id, name) VALUES (4, 'Expired');
INSERT INTO ism_schedule_status (id, name) VALUES (5, 'Removed');
CREATE SEQUENCE IF NOT EXISTS ism_schedule_status_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS ism_schedule_status_change_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS ism_schedule_status ADD CONSTRAINT PK_ism_schedule_status_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS ism_schedule_status_change ADD CONSTRAINT PK_ism_schedule_status_change_id PRIMARY KEY (id);
ALTER TABLE ism_mounting_point_schedule ADD COLUMN IF NOT EXISTS status_id INTEGER;
ALTER TABLE ism_mounting_point_schedule ADD COLUMN IF NOT EXISTS time_created bigint DEFAULT (extract(epoch from now()) * 1000);
ALTER TABLE ism_mounting_point_schedule ADD COLUMN IF NOT EXISTS time_prepared bigint;
COMMENT ON COLUMN ism_mounting_point_schedule.time_start IS 'time activated';
COMMENT ON COLUMN ism_mounting_point_schedule.time_end IS 'time expired';
ALTER TABLE ism_mounting_point_schedule ADD CONSTRAINT FK_ism_mounting_point_schedule_status_id_ism_schedule_status_id FOREIGN KEY (status_id) REFERENCES ism_schedule_status (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE ism_schedule_status_change ADD CONSTRAINT FK_ism_schedule_status_change_schedule_id_ism_mounting_point_sc FOREIGN KEY (schedule_id) REFERENCES ism_mounting_point_schedule (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE ism_schedule_status_change ADD CONSTRAINT FK_ism_schedule_status_change_schedule_status_id_ism_schedule_s FOREIGN KEY (schedule_status_id) REFERENCES ism_schedule_status (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE ism_mounting_point_plan ADD CONSTRAINT FK_ism_mounting_point_plan_mounting_point_state_ism_mounting_po FOREIGN KEY (mounting_point_state) REFERENCES ism_mounting_point_state (id) ON DELETE CASCADE ON UPDATE CASCADE;
-- DROP INDEX IF EXISTS IDX_ism_mounting_point_plan_mounting_point_schedule_id CASCADE;
CREATE INDEX IF NOT EXISTS IDX_ism_mounting_point_plan_mounting_point_schedule_id ON ism_mounting_point_plan (mounting_point_schedule_id);
UPDATE ism_mounting_point_schedule SET status_id = 1 WHERE status_id IS null;
-- Notify functions for callbacks (signals in db interface) - needed for copySchedule
CREATE OR REPLACE FUNCTION public.ism_notifyInsertMainSchedule()
RETURNS TRIGGER AS $$
DECLARE
toNotify RECORD;
toReturn RECORD;
BEGIN
IF (TG_OP = 'INSERT') THEN
toNotify = NEW;
toReturn = NEW;
ELSIF (TG_OP = 'UPDATE') THEN
toNotify = OLD;
toReturn = NEW;
ELSIF (TG_OP = 'DELETE') THEN
toNotify = OLD;
toReturn = OLD;
END IF;
PERFORM pg_notify('notifyInsertMainSchedule', CAST(toNotify.id AS text));
RETURN toReturn;
END;
$$ LANGUAGE plpgsql;
-- Notify function trigger for callbacks (signals in db interface) - needed for copySchedule
DROP TRIGGER IF EXISTS trg_ai_notifyInsertMainSchedule ON ism_mounting_point_schedule;
CREATE TRIGGER trg_ai_notifyInsertMainSchedule
AFTER INSERT ON ism_mounting_point_schedule FOR EACH ROW EXECUTE PROCEDURE public.ism_notifyInsertMainSchedule();
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+65
View File
@@ -0,0 +1,65 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add 6 Guez bridges with footprints
-- PROJECT: Guez
-- DATE: 2021-09-03
-- VERSION: 1.23
-------------------------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
-- Main structure elements
INSERT INTO ism.ism_main_structure_element (id, name, description, geo_position_x, geo_position_y, geo_position_z, angle, model_id, external_wls_id, properties)
VALUES (201, 'Brücke_1', 'Brücke', 0.20244350, 0.91600840, 89, 75, 1000, 0, '{"bridgeStatus": 1}');
INSERT INTO ism.ism_main_structure_element (id, name, description, geo_position_x, geo_position_y, geo_position_z, angle, model_id, external_wls_id, properties)
VALUES (202, 'Brücke_2', 'Brücke', 0.20249532, 0.91604629, 89, 48, 1000, 0, '{"bridgeStatus": 1}');
INSERT INTO ism.ism_main_structure_element (id, name, description, geo_position_x, geo_position_y, geo_position_z, angle, model_id, external_wls_id, properties)
VALUES (203, 'Brücke_3', 'Brücke', 0.20254068, 0.91606124, 92, 59, 1000, 0, '{"bridgeStatus": 1}');
INSERT INTO ism.ism_main_structure_element (id, name, description, geo_position_x, geo_position_y, geo_position_z, angle, model_id, external_wls_id, properties)
VALUES (204, 'Brücke_4', 'Brücke', 0.20259702, 0.91609599, 93, 72, 1000, 0, '{"bridgeStatus": 1}');
INSERT INTO ism.ism_main_structure_element (id, name, description, geo_position_x, geo_position_y, geo_position_z, angle, model_id, external_wls_id, properties)
VALUES (205, 'Brücke_5', 'Brücke', 0.20261578, 0.91610101, 92, 19, 1000, 0, '{"bridgeStatus": 1}');
INSERT INTO ism.ism_main_structure_element (id, name, description, geo_position_x, geo_position_y, geo_position_z, angle, model_id, external_wls_id, properties)
VALUES (206, 'Brücke_6', 'Brücke', 0.20263897, 0.91610447, 91, 340, 1000, 0, '{"bridgeStatus": 1}');
-- Structure elements
INSERT INTO ism.ism_structure_element (id, name, main_structure_element_id, structure_element_type_id, path, mounting_point_id, barcode, rel_position_x, rel_position_y, rel_position_z, mounting_point_type_id, orientation_x, orientation_y, orientation_z, properties, display_name) VALUES (32, 'BridgeProxy 1', 201, 11, '{32}', 0, '', 0, 0, 0, 0, 0, 0, 0, '{}', 'Brücke 1');
INSERT INTO ism.ism_structure_element (id, name, main_structure_element_id, structure_element_type_id, path, mounting_point_id, barcode, rel_position_x, rel_position_y, rel_position_z, mounting_point_type_id, orientation_x, orientation_y, orientation_z, properties, display_name) VALUES (34, 'BridgeProxy 2', 202, 11, '{34}', 0, '', 0, 0, 0, 0, 0, 0, 0, '{}', 'Brücke 2');
INSERT INTO ism.ism_structure_element (id, name, main_structure_element_id, structure_element_type_id, path, mounting_point_id, barcode, rel_position_x, rel_position_y, rel_position_z, mounting_point_type_id, orientation_x, orientation_y, orientation_z, properties, display_name) VALUES (36, 'BridgeProxy 3', 203, 11, '{36}', 0, '', 0, 0, 0, 0, 0, 0, 0, '{}', 'Brücke 3');
INSERT INTO ism.ism_structure_element (id, name, main_structure_element_id, structure_element_type_id, path, mounting_point_id, barcode, rel_position_x, rel_position_y, rel_position_z, mounting_point_type_id, orientation_x, orientation_y, orientation_z, properties, display_name) VALUES (38, 'BridgeProxy 4', 204, 11, '{38}', 0, '', 0, 0, 0, 0, 0, 0, 0, '{}', 'Brücke 4');
INSERT INTO ism.ism_structure_element (id, name, main_structure_element_id, structure_element_type_id, path, mounting_point_id, barcode, rel_position_x, rel_position_y, rel_position_z, mounting_point_type_id, orientation_x, orientation_y, orientation_z, properties, display_name) VALUES (40, 'BridgeProxy 5', 205, 11, '{40}', 0, '', 0, 0, 0, 0, 0, 0, 0, '{}', 'Brücke 5');
INSERT INTO ism.ism_structure_element (id, name, main_structure_element_id, structure_element_type_id, path, mounting_point_id, barcode, rel_position_x, rel_position_y, rel_position_z, mounting_point_type_id, orientation_x, orientation_y, orientation_z, properties, display_name) VALUES (42, 'BridgeProxy 6', 206, 11, '{42}', 0, '', 0, 0, 0, 0, 0, 0, 0, '{}', 'Brücke 6');
-- Footprints
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (32, 0, -5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (32, 1, -5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (32, 2, 5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (32, 3, 5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (34, 0, -5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (34, 1, -5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (34, 2, 5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (34, 3, 5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (36, 0, -5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (36, 1, -5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (36, 2, 5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (36, 3, 5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (38, 0, -5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (38, 1, -5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (38, 2, 5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (38, 3, 5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (40, 0, -5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (40, 1, -5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (40, 2, 5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (40, 3, 5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (42, 0, -5, -10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (42, 1, -5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (42, 2, 5, 10, 0);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no, rel_position_x, rel_position_y, rel_position_z) VALUES (42, 3, 5, -10, 0);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+38
View File
@@ -0,0 +1,38 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Puma VBA changes
-- PROJECT: Guez
-- DATE: 2021-08-26
-- VERSION: 1.24
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063233, 4, 'Funk defekt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063234, 4, 'Funkantenne defekt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063235, 4, 'Funktion defekt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063236, 4, 'Aufbau defekt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063237, 4, 'Ladung zerstört');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063238, 4, 'Personal ausgefallen');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063239, 4, 'Turm beschädigt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063240, 4, 'Ausfall MELLS Anbausatz');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063241, 4, 'Kette defekt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063242, 4, 'Motor defekt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063243, 4, 'Kettenantrieb defekt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063244, 4, 'Periskop defekt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063245, 4, 'Turmantrieb defekt');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063246, 4, 'Hauptwaffe ausgefallen');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063247, 4, 'Keine Wirkung');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063248, 4, 'Reaktiv GÜZ');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063249, 4, 'Reaktiv SR');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063250, 4, 'Totalausfall');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063251, 4, 'Übungspause');
INSERT INTO pdm.pdm_vulnerability_kind (player_type_class_id, ta_vulnerability_kind, vulnerability_class_id, name) VALUES (4, 4063252, 4, 'Übungsunterbrechung');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,428 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Disentities for all charge types
-- PROJECT: Guez
-- DATE: 2021-08-27
-- VERSION: 1.25
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.0' WHERE id=1;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.1' WHERE id=2;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.2' WHERE id=3;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.3' WHERE id=4;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.2.10.1.0' WHERE id=5;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.2.9.6.0' WHERE id=6;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.23.1.0' WHERE id=7;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.2.0' WHERE id=8;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.206.2.1.8.0' WHERE id=9;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.0' WHERE id=10;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.5' WHERE id=11;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=12;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.1' WHERE id=13;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.1' WHERE id=14;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.1.0.0' WHERE id=15;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.5.0' WHERE id=16;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.2.1.0' WHERE id=17;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.1.2.0' WHERE id=18;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=19;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=20;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.1' WHERE id=21;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.2.2.8.0' WHERE id=22;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.222.2.2.5.0' WHERE id=23;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.78.2.9.2.0' WHERE id=24;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.21.3.0' WHERE id=25;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.5.0' WHERE id=26;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.2.0' WHERE id=27;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.45.2.23.1.0' WHERE id=28;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.0' WHERE id=29;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.1.0' WHERE id=30;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.0' WHERE id=31;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.206.2.1.1.0' WHERE id=32;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.206.2.1.1.1' WHERE id=33;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.2' WHERE id=34;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.2' WHERE id=35;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.1.0' WHERE id=36;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.222.2.1.1.0' WHERE id=37;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.3' WHERE id=38;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.78.2.9.2.1' WHERE id=39;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.2.1.1' WHERE id=40;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.205.2.1.1.0' WHERE id=41;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.4' WHERE id=42;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.1' WHERE id=43;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.2.1.2' WHERE id=44;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.7.0' WHERE id=45;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.6' WHERE id=48;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.7' WHERE id=49;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.0' WHERE id=50;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.81.0.0' WHERE id=51;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.11' WHERE id=52;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.0.0' WHERE id=53;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.0.0' WHERE id=54;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=55;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.1.0.0' WHERE id=56;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.1.0.1' WHERE id=57;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.0' WHERE id=58;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.1' WHERE id=59;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.3.8.0.0' WHERE id=60;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.3.8.0.1' WHERE id=61;
UPDATE pdm.pdm_charge_type SET dis_entity='1.1.78.0.0.1' WHERE id=62;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.20' WHERE id=63;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.0' WHERE id=64;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.1' WHERE id=65;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.1' WHERE id=66;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=67;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.8' WHERE id=68;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.9' WHERE id=69;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.10' WHERE id=70;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.1' WHERE id=71;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.1' WHERE id=72;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.0.1' WHERE id=73;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.0.2' WHERE id=74;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.78.2.4.0.0' WHERE id=75;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.222.2.3.0.0' WHERE id=76;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.4.0.0' WHERE id=77;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.2' WHERE id=78;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.0.3' WHERE id=79;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.0' WHERE id=2001;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.81.0.1' WHERE id=2002;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.2' WHERE id=2003;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.3' WHERE id=2004;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.1' WHERE id=2005;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.2' WHERE id=2006;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.3' WHERE id=2007;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.81.0.4' WHERE id=2008;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.4' WHERE id=2009;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.5' WHERE id=2010;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.3' WHERE id=2011;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.2' WHERE id=2012;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.3' WHERE id=2013;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.4' WHERE id=2014;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.4' WHERE id=2015;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.5' WHERE id=2016;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.6' WHERE id=2017;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.7' WHERE id=2018;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.5' WHERE id=2019;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.6' WHERE id=2020;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.7' WHERE id=2021;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.0' WHERE id=2022;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.1' WHERE id=2023;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.14.0.0' WHERE id=2024;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.14.0.1' WHERE id=2025;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.2' WHERE id=2026;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.3' WHERE id=2027;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.4' WHERE id=2028;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.5' WHERE id=2029;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.2' WHERE id=2030;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.3' WHERE id=2031;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.4' WHERE id=2032;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.5' WHERE id=2033;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.0' WHERE id=2034;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.1' WHERE id=2035;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.2' WHERE id=2036;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.3' WHERE id=2037;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.4' WHERE id=2038;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.5' WHERE id=2039;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.6' WHERE id=2040;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.7' WHERE id=2041;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.8' WHERE id=2042;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.9' WHERE id=2043;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.10' WHERE id=2044;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.11' WHERE id=2045;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.12' WHERE id=2046;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.13' WHERE id=2047;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.14' WHERE id=2048;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.15' WHERE id=2049;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.0' WHERE id=2050;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.1' WHERE id=2051;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.2' WHERE id=2052;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.3' WHERE id=2053;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.4' WHERE id=2054;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.39.0.0' WHERE id=2055;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.39.0.1' WHERE id=2056;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.1' WHERE id=2057;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.2' WHERE id=2058;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.3' WHERE id=2059;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.4' WHERE id=2060;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.5' WHERE id=2061;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.6' WHERE id=2062;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.7' WHERE id=2063;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.8' WHERE id=2064;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.0' WHERE id=2065;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.1' WHERE id=2066;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.2' WHERE id=2067;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.3' WHERE id=2068;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.4' WHERE id=2069;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.5' WHERE id=2070;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.78.2.9.0.0' WHERE id=2071;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.78.2.9.0.1' WHERE id=2072;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.5.0.0' WHERE id=2073;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.5.0.1' WHERE id=2074;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.5.0.2' WHERE id=2075;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.0' WHERE id=2076;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.1' WHERE id=2077;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.2' WHERE id=2078;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.3' WHERE id=2079;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.0' WHERE id=2080;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.1' WHERE id=2081;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.2' WHERE id=2082;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.3' WHERE id=2083;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.4' WHERE id=2084;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.5' WHERE id=2085;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.6' WHERE id=2086;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.7' WHERE id=2087;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.8' WHERE id=2088;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.9' WHERE id=2089;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.0' WHERE id=2090;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.1' WHERE id=2091;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.2' WHERE id=2092;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.5' WHERE id=2093;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.6' WHERE id=2094;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.7' WHERE id=2095;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.8' WHERE id=2096;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.9' WHERE id=2097;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.10' WHERE id=2098;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.11' WHERE id=2099;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.12' WHERE id=2100;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.11.0.0' WHERE id=2101;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.11.0.1' WHERE id=2102;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.11.0.2' WHERE id=2103;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.2.11.0.3' WHERE id=2104;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.4' WHERE id=2105;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.5' WHERE id=2106;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.10' WHERE id=2107;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.11' WHERE id=2108;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.12' WHERE id=2109;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.14.0.0' WHERE id=2110;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.14.0.1' WHERE id=2111;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.6.0.0' WHERE id=2112;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.222.1.11.0.0' WHERE id=2113;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.10.0.0' WHERE id=2114;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.11.0.0' WHERE id=2115;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.13.0.0' WHERE id=2116;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.0' WHERE id=2117;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.1' WHERE id=2118;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.2' WHERE id=2119;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.16.0.0' WHERE id=2120;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.16.0.1' WHERE id=2121;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.26.0.0' WHERE id=2122;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.45.0.0' WHERE id=2123;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.4.0.0' WHERE id=2124;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.3.0.0' WHERE id=2125;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.3.0.1' WHERE id=2126;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.16.0.0' WHERE id=2127;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.16.0.1' WHERE id=2128;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.0.0' WHERE id=2129;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.4.0' WHERE id=2130;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.4.1' WHERE id=2131;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.5.0' WHERE id=2132;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.5.1' WHERE id=2133;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2134;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.2.0.0' WHERE id=2135;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.8.0.0' WHERE id=2136;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.8.0.1' WHERE id=2137;
UPDATE pdm.pdm_charge_type SET dis_entity='2.4.225.1.6.0.0' WHERE id=2138;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.3.0.0' WHERE id=2139;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.3.0.1' WHERE id=2140;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.4.2.0' WHERE id=2141;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.4.3.0' WHERE id=2142;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.0' WHERE id=2143;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.1' WHERE id=2144;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.2' WHERE id=2145;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.2.0.0' WHERE id=2146;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.2.0.1' WHERE id=2147;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.2.0.0' WHERE id=2148;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.9.0.0' WHERE id=2149;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.0' WHERE id=2150;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.3' WHERE id=2151;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.0' WHERE id=2152;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.4' WHERE id=2153;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.5' WHERE id=2154;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.0.0' WHERE id=2155;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.0.1' WHERE id=2156;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.3.0' WHERE id=2157;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.3.1' WHERE id=2158;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.9' WHERE id=2159;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.10' WHERE id=2160;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.11' WHERE id=2161;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.12' WHERE id=2162;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.13' WHERE id=2163;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.14' WHERE id=2164;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.197.1.1.0.0' WHERE id=2165;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.0.3.4.0.0' WHERE id=2166;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.6' WHERE id=2167;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.7.0.0' WHERE id=2168;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.3' WHERE id=2169;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.8' WHERE id=2170;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.9' WHERE id=2171;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.10' WHERE id=2172;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.11' WHERE id=2173;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.3.8.0.2' WHERE id=2174;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.5' WHERE id=2175;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.6' WHERE id=2176;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.7.3' WHERE id=2177;
UPDATE pdm.pdm_charge_type SET dis_entity='9.1.225.5.9.0' WHERE id=2178;
UPDATE pdm.pdm_charge_type SET dis_entity='9.1.225.5.7.0' WHERE id=2179;
UPDATE pdm.pdm_charge_type SET dis_entity='9.1.225.5.60.0' WHERE id=2180;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2181;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2182;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2183;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.1.0.1' WHERE id=2184;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.1' WHERE id=2185;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2186;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2187;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.1.5.0.0' WHERE id=2188;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2189;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2190;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2191;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=2192;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.81.0.2' WHERE id=4001;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.81.0.3' WHERE id=4002;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.6' WHERE id=4003;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.7' WHERE id=4004;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.81.0.4' WHERE id=4007;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.81.0.5' WHERE id=4008;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.8' WHERE id=4009;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.9' WHERE id=4010;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.8' WHERE id=4015;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.9' WHERE id=4016;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.10' WHERE id=4017;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.11' WHERE id=4018;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.8' WHERE id=4019;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.9' WHERE id=4020;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.3.10' WHERE id=4021;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.16' WHERE id=4034;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.17' WHERE id=4035;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.18' WHERE id=4036;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.19' WHERE id=4037;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.20' WHERE id=4038;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.21' WHERE id=4040;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.22' WHERE id=4041;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.23' WHERE id=4042;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.24' WHERE id=4044;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.25' WHERE id=4045;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.10.0' WHERE id=6022;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.14.0.2' WHERE id=6024;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.14.0.3' WHERE id=6025;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.7' WHERE id=6026;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.2.3.5.8' WHERE id=6027;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.6' WHERE id=6030;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.4.23.7' WHERE id=6031;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.26' WHERE id=6036;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.27' WHERE id=6039;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.28' WHERE id=6040;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.29' WHERE id=6043;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.30' WHERE id=6044;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.31' WHERE id=6045;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.32' WHERE id=6047;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.33' WHERE id=6048;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.5' WHERE id=6051;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.84.0.6' WHERE id=6053;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.7.0.1' WHERE id=6055;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.9' WHERE id=6057;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.10' WHERE id=6060;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.39.0.2' WHERE id=6065;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.39.0.3' WHERE id=6069;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.6' WHERE id=6077;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.13' WHERE id=6081;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.14' WHERE id=6085;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.15' WHERE id=6086;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.4' WHERE id=6091;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.16' WHERE id=6096;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.5' WHERE id=6097;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.6' WHERE id=6103;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.9.0.7' WHERE id=6105;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.10.0.17' WHERE id=6107;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.3' WHERE id=6110;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.16.0.2' WHERE id=6121;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.8' WHERE id=6170;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.9' WHERE id=6171;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.10' WHERE id=6172;
UPDATE pdm.pdm_charge_type SET dis_entity='5.1.0.5.30.11' WHERE id=6173;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.7' WHERE id=6175;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.85.0.8' WHERE id=6176;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=6191;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.2.6.0.0' WHERE id=8056;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.11' WHERE id=8058;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.12' WHERE id=8059;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.2.10.0.0' WHERE id=8066;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.2.11.0.0' WHERE id=8070;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.6.0.0' WHERE id=8112;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.222.1.11.0.1' WHERE id=8113;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.10.0.1' WHERE id=8114;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.11.0.1' WHERE id=8115;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.13.0.1' WHERE id=8116;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.4' WHERE id=8117;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.5' WHERE id=8118;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.14.0.6' WHERE id=8119;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.16.0.3' WHERE id=8120;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.222.1.16.0.4' WHERE id=8121;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.4.0.1' WHERE id=8125;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.4.0.2' WHERE id=8126;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.16.0.2' WHERE id=8127;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.16.0.3' WHERE id=8128;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.0.1' WHERE id=8129;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.4.2' WHERE id=8130;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.4.3' WHERE id=8131;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.5.2' WHERE id=8132;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.5.3' WHERE id=8133;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=8134;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.2.0.1' WHERE id=8135;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.8.0.2' WHERE id=8136;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.8.0.3' WHERE id=8137;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=8139;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=8140;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.4.2.1' WHERE id=8141;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.4.3.1' WHERE id=8142;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.3' WHERE id=8143;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.4' WHERE id=8144;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.5' WHERE id=8145;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.2.0.2' WHERE id=8146;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.2.0.3' WHERE id=8147;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.71.1.2.0.1' WHERE id=8148;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.9.0.1' WHERE id=8149;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.4' WHERE id=8150;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.1.5' WHERE id=8151;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.6' WHERE id=8152;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.7' WHERE id=8153;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.2.8' WHERE id=8154;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.0.2' WHERE id=8156;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.3.2' WHERE id=8157;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.1.1.3.3' WHERE id=8158;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.15' WHERE id=8159;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.16' WHERE id=8160;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.17' WHERE id=8161;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.18' WHERE id=8162;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.19' WHERE id=8163;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.20' WHERE id=8164;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.8.0.4' WHERE id=12136;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.8.0.5' WHERE id=12137;
UPDATE pdm.pdm_charge_type SET dis_entity='2.1.225.1.15.0.0' WHERE id=12138;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.1.5.0.6' WHERE id=12145;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.21' WHERE id=12160;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.22' WHERE id=12161;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.105.1.3.0.23' WHERE id=12163;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.2.0.10' WHERE id=22010;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.12' WHERE id=22017;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.13' WHERE id=22059;
UPDATE pdm.pdm_charge_type SET dis_entity='2.9.225.2.11.0.7' WHERE id=22097;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.225.1.1.0.2' WHERE id=22129;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.1.0.1' WHERE id=22184;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.5.1.1' WHERE id=22185;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=22186;
UPDATE pdm.pdm_charge_type SET dis_entity='2.0.0.0.0.0.1' WHERE id=22187;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.1.0.34' WHERE id=23047;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.205.2.2.6.14' WHERE id=23058;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.6' WHERE id=23069;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.224.2.7.0.7' WHERE id=23070;
UPDATE pdm.pdm_charge_type SET dis_entity='2.2.78.2.9.0.2' WHERE id=23072;
UPDATE pdm.pdm_charge_type SET dis_entity='2.8.225.2.16.0.13' WHERE id=23100;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+87
View File
@@ -0,0 +1,87 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Delete double entries from assets
-- PROJECT: Guez
-- DATE: 2021-09-16
-- VERSION: 1.26
-------------------------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
-- GSM
DELETE FROM ism.ism_asset WHERE id IN (121, 103, 104, 105, 106, 107, 108,109, 110, 111,112, 122, 113, 114, 115, 116, 117, 118, 119, 120);
-- OUTDOOR CAMERAS
DELETE FROM ism.ism_asset WHERE id IN (201, 202, 203);
-- INDOOR CAMERAS
DELETE FROM ism.ism_asset WHERE id IN (2943, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,135, 136, 137, 138);
-- BUILDING SENSOR MODULE
DELETE FROM ism.ism_asset WHERE id IN (1, 3779);
-- Only if necessary
-- DELETE FROM ism.ism_asset WHERE mounting_point_type_id = 2;
INSERT INTO ism.ism_mounting_point_type (id, name) VALUES (14, 'BuildingNetworkSwitch');
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045020001_80206045020001_020001', 14, 'GV__80206045020001_80206045020001_020001','UEPOGV-0001', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045020002_80206045020002_020002', 14, 'GV__80206045020002_80206045020002_020002','UEPOGV-0002', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045020003_80206045020003_020003', 14, 'GV__80206045020003_80206045020003_020003','UEPOGV-0003', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045020004_80206045020004_020004', 14, 'GV__80206045020004_80206045020004_020004','UEPOGV-0004', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045020005_80206045020005_020005', 14, 'GV__80206045020005_80206045020005_020005','UEPOGV-0005', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045020006_80206045020006_020006', 14, 'GV__80206045020006_80206045020006_020006','UEPOGV-0006', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030007_80206045030007_030007', 14, 'GV__80206045030007_80206045030007_030007','UEPOGV-0007', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030008_80206045030008_030008', 14, 'GV__80206045030008_80206045030008_030008','UEPOGV-0008', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030009_80206045030009_030009', 14, 'GV__80206045030009_80206045030009_030009','UEPOGV-0009', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030010_80206045030010_030010', 14, 'GV__80206045030010_80206045030010_030010','UEPOGV-0010', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030011_80206045030011_030011', 14, 'GV__80206045030011_80206045030011_030011','UEPOGV-0011', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030012_80206045030012_030012', 14, 'GV__80206045030012_80206045030012_030012','UEPOGV-0012', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030013_80206045030013_030013', 14, 'GV__80206045030013_80206045030013_030013','UEPOGV-0013', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030014_80206045030014_030014', 14, 'GV__80206045030014_80206045030014_030014','UEPOGV-0014', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030015_80206045030015_030015', 14, 'GV__80206045030015_80206045030015_030015','UEPOGV-0015', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030016_80206045030016_030016', 14, 'GV__80206045030016_80206045030016_030016','UEPOGV-0016', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030017_80206045030017_030017', 14, 'GV__80206045030017_80206045030017_030017','UEPOGV-0017', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030018_80206045030018_030018', 14, 'GV__80206045030018_80206045030018_030018','UEPOGV-0018', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030019_80206045030019_030019', 14, 'GV__80206045030019_80206045030019_030019','UEPOGV-0019', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030020_80206045030020_030020', 14, 'GV__80206045030020_80206045030020_030020','UEPOGV-0020', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030021_80206045030021_030021', 14, 'GV__80206045030021_80206045030021_030021','UEPOGV-0021', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030022_80206045030022_030022', 14, 'GV__80206045030022_80206045030022_030022','UEPOGV-0022', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030023_80206045030023_030023', 14, 'GV__80206045030023_80206045030023_030023','UEPOGV-0023', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030024_80206045030024_030024', 14, 'GV__80206045030024_80206045030024_030024','UEPOGV-0024', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030025_80206045030025_030025', 14, 'GV__80206045030025_80206045030025_030025','UEPOGV-0025', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030026_80206045030026_030026', 14, 'GV__80206045030026_80206045030026_030026','UEPOGV-0026', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030027_80206045030027_030027', 14, 'GV__80206045030027_80206045030027_030027','UEPOGV-0027', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030028_80206045030028_030028', 14, 'GV__80206045030028_80206045030028_030028','UEPOGV-0028', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030029_80206045030029_030029', 14, 'GV__80206045030029_80206045030029_030029','UEPOGV-0029', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030030_80206045030030_030030', 14, 'GV__80206045030030_80206045030030_030030','UEPOGV-0030', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030031_80206045030031_030031', 14, 'GV__80206045030031_80206045030031_030031','UEPOGV-0031', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030032_80206045030032_030032', 14, 'GV__80206045030032_80206045030032_030032','UEPOGV-0032', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030033_80206045030033_030033', 14, 'GV__80206045030033_80206045030033_030033','UEPOGV-0033', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030034_80206045030034_030034', 14, 'GV__80206045030034_80206045030034_030034','UEPOGV-0034', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030035_80206045030035_030035', 14, 'GV__80206045030035_80206045030035_030035','UEPOGV-0035', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030036_80206045030036_030036', 14, 'GV__80206045030036_80206045030036_030036','UEPOGV-0036', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030037_80206045030037_030037', 14, 'GV__80206045030037_80206045030037_030037','UEPOGV-0037', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030038_80206045030038_030038', 14, 'GV__80206045030038_80206045030038_030038','UEPOGV-0038', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030039_80206045030039_030039', 14, 'GV__80206045030039_80206045030039_030039','UEPOGV-0039', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030040_80206045030040_030040', 14, 'GV__80206045030040_80206045030040_030040','UEPOGV-0040', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030041_80206045030041_030041', 14, 'GV__80206045030041_80206045030041_030041','UEPOGV-0041', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030042_80206045030042_030042', 14, 'GV__80206045030042_80206045030042_030042','UEPOGV-0042', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030043_80206045030043_030043', 14, 'GV__80206045030043_80206045030043_030043','UEPOGV-0043', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030044_80206045030044_030044', 14, 'GV__80206045030044_80206045030044_030044','UEPOGV-0044', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030045_80206045030045_030045', 14, 'GV__80206045030045_80206045030045_030045','UEPOGV-0045', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030046_80206045030046_030046', 14, 'GV__80206045030046_80206045030046_030046','UEPOGV-0046', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030047_80206045030047_030047', 14, 'GV__80206045030047_80206045030047_030047','UEPOGV-0047', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030048_80206045030048_030048', 14, 'GV__80206045030048_80206045030048_030048','UEPOGV-0048', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030049_80206045030049_030049', 14, 'GV__80206045030049_80206045030049_030049','UEPOGV-0049', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030050_80206045030050_030050', 14, 'GV__80206045030050_80206045030050_030050','UEPOGV-0050', 0);
INSERT INTO ism.ism_asset (name, mounting_point_type_id, barcode, hostname, asset_state_id) VALUES ('GV__80206045030051_80206045030051_030051', 14, 'GV__80206045030051_80206045030051_030051','UEPOGV-0051', 0);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,24 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add values with icons in table asm.egcu_relay_info (NLDEVCTRL-1333)
-- PROJECT: Guez
-- DATE: 2021-09-16
-- VERSION: 1.27
-------------------------------------------------------------------------
-- GLOBAL: ASM;
BEGIN;
DELETE FROM asm.asm_egcu_relay_info;
INSERT INTO asm.asm_egcu_relay_info (id, properties, name, relay_id) VALUES (1, '{"Icons": {"1":"icon:bulb_on.svg", "0":"icon:bulb_off.svg"}}', 'Lampe', 0);
INSERT INTO asm.asm_egcu_relay_info (id, properties, name, relay_id) VALUES (2, '{"Icons": {"1":"icon:heater_hot.svg", "0":"icon:heater_cold.svg"}}', 'Heizung', 1);
INSERT INTO asm.asm_egcu_relay_info (id, properties, name, relay_id) VALUES (3, '{"Icons": {"1":"icon:cloud_fog_on.svg", "0":"icon:cloud_fog_off.svg"}}', 'Nebel', 2);
INSERT INTO asm.asm_egcu_relay_info (id, properties, name, relay_id) VALUES (4, '{"allowPermanentOn":false, "showStatus":false, "Icons": {"1":"icon:audio-volume-high.svg", "0":"icon:audio-volume-muted.svg"}}', 'Sound', 99);
ALTER SEQUENCE asm.asm_egcu_relay_info_id_seq RESTART WITH 5;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,20 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: update values in pdm_gear_type_charge_type (NLDEVCTRL-926)
-- PROJECT: Guez
-- DATE: 2021-09-17
-- VERSION: 1.28
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
UPDATE pdm.pdm_gear_type_charge_type SET max_range=1000 WHERE gear_type_id = 1000 AND charge_type_id = 2035;
UPDATE pdm.pdm_gear_type_charge_type SET max_range=2000 WHERE gear_type_id = 1000 AND charge_type_id = 2036;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,19 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Update display names for buildings and mounting points (for streams) by removing "bldg_"
-- PROJECT: Guez
-- DATE: 2021-09-26
-- VERSION: 1.29
-------------------------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
UPDATE ism.ism_structure_element SET display_name = REPLACE(display_name,'bldg_','') WHERE structure_element_type_id IN (3,6);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+21
View File
@@ -0,0 +1,21 @@
--# $Id$
--# $HeadURL$
--# $Author$
-------------------------------------------------------------------------
-- INFO: Move OutdoorIPS (6) to IndoorIPS (5)
-- PROJECT: Guez
-- DATE: 2021-09-21
-- VERSION: 1.30
-------------------------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
UPDATE ism.ism_structure_element SET mounting_point_type_id = 6 WHERE mounting_point_type_id = 5;
UPDATE ism.ism_asset SET mounting_point_type_id = 6 WHERE mounting_point_type_id = 5;
DELETE FROM ism.ism_asset WHERE mounting_point_type_id = 6 AND (barcode is null or length(barcode) = 0);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+23
View File
@@ -0,0 +1,23 @@
-------------------------------------------------------------------------
-- INFO: Clean up FLM
-- PROJECT: Guez
-- DATE: 2021-09-23
-- VERSION: 1.31
-------------------------------------------------------------------------
-- GLOBAL: FLM;
BEGIN;
-- Remove folder 2.Zwischenabnahme
UPDATE flm.flm_file_content SET folder_id = 1152, file_category_id = 1 WHERE folder_id = 1443;
DELETE FROM flm.flm_folder WHERE id = 1443;
-- Remove folders PUMA/TNE
UPDATE flm.flm_file_content SET folder_id = 1612 WHERE folder_id = 1625;
DELETE FROM flm.flm_folder WHERE id IN (1625, 1624);
-- Ausw Fotos -> Hartung
UPDATE flm.flm_file_content SET folder_id = 1352 WHERE name = '2021 07 12 Olt Hartung';
DELETE FROM flm.flm_folder WHERE id = 1569;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,26 @@
-------------------------------------------------------------------------
-- INFO: Insert missing folder structure for ex 130 (phase 141)
-- PROJECT: Guez
-- DATE: 2021-09-24
-- VERSION: 1.32
-------------------------------------------------------------------------
-- GLOBAL: FLM;
BEGIN;
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1629, '$EX_130', '{2, 1629}', false, 2, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1630, 'Documents' , '{2, 1629, 1630}', false, 1629, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1631, 'Instructions' , '{2, 1629, 1631}', false, 1629, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1632, 'Incidents' , '{2, 1629, 1632}', false, 1629, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1633, 'Snapshots' , '{2, 1629, 1633}', false, 1629, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1634, 'Markers' , '{2, 1629, 1634}', false, 1629, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1635, 'Reports' , '{2, 1629, 1635}', false, 1629, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1636, 'Tactical Plans' , '{2, 1629, 1636}', false, 1629, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1637, 'Planning' , '{2, 1629, 1637}', false, 1629, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1638, 'Phase Documents', '{2, 1629, 1638}', false, 1629, 99);
INSERT INTO flm.flm_folder (id, name, path, is_editable, parent_id, operator_id) VALUES (1639, '$PH_141' , '{2, 1629, 1638, 1639}', false, 1638, 99);
ALTER SEQUENCE flm.flm_folder_id_seq RESTART WITH 1640;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,33 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add back Nebel Mrt (385) in pdm_gear_type_charge_type and also in exercise charge administration table
-- PROJECT: Guez
-- DATE: 2021-09-24
-- VERSION: 1.33
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (801, 385, 25190);
COMMIT;
-- EXERCISE: EX_128,EX_129,EX_130;
BEGIN;
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 0, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 1, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 2, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 3, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 4, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 5, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 6, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 7, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 8, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 9, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 10, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 11, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 12, 0, 0, 0, true);
INSERT INTO aes_charge_administration (charge_type_id, party_id, amount, planned, used, amount_changed_by_operator) VALUES (385, 13, 0, 0, 0, true);
COMMIT;
+28
View File
@@ -0,0 +1,28 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: clean events: remove AVS event with no streamName, remove duplicates. Clean pdm_event_type.
-- PROJECT: Guez
-- DATE: 2021-09-29
-- VERSION: 1.34
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
UPDATE pdm.pdm_event_type SET name = 'HitEffectSimulation' WHERE id = 13;
INSERT INTO pdm.pdm_event_type (id, name) VALUES (29, 'HitGasPipe');
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- remove events with no sample time
DELETE FROM eem_event WHERE sample_time <= 0;
-- remove AVS events with no stream name
DELETE FROM eem_event WHERE event_type_id IN (8,9,10) AND (properties->>'streamName' = '') IS NOT FALSE;
-- remove ALL duplicate events (z.B. in ex_130 will be deleted 8823 rows from total 24048)
DELETE FROM eem_event WHERE id IN (SELECT id FROM (SELECT id, ROW_NUMBER() OVER (PARTITION BY sample_time, event_type_id, participant_id, party_id, equipment_number, position_x, position_y, position_z, properties ORDER BY id) AS row_num FROM eem_event) t WHERE t.row_num > 1);
-- another variant, only for AVS events
--DELETE FROM eem_event a USING eem_event b WHERE a.id < b.id AND a.event_type_id IN (8,9,10) AND a.sample_time = b.sample_time AND a.event_type_id = b.event_type_id AND a.properties = b.properties;
COMMIT;
@@ -0,0 +1,26 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: add column qualification
-- PROJECT: Guez
-- DATE: 2021-11-10
-- VERSION: 1.35
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- PPM
ALTER TABLE IF EXISTS rec_dynamic_participant_data ADD COLUMN IF NOT EXISTS qualification integer;
UPDATE rec_dynamic_participant_data SET qualification = 1 WHERE qualification IS NULL;
-- REP
ALTER TABLE IF EXISTS rep_sanitation_material_data ADD COLUMN IF NOT EXISTS qualification integer;
ALTER TABLE IF EXISTS rep_sanitation_material_result ADD COLUMN IF NOT EXISTS qualification integer;
UPDATE rep_sanitation_material_data SET qualification = 1 WHERE qualification IS NULL;
UPDATE rep_sanitation_material_result SET qualification = 1 WHERE qualification IS NULL;
COMMIT;
@@ -0,0 +1,28 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: update values in PDM building charge effect (SVN 55598)
-- PROJECT: Guez
-- DATE: 2021-11-15
-- VERSION: 1.36
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DELETE FROM pdm.pdm_building_charge_effect WHERE id IN (33, 43, 62, 103, 115, 267);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (33, 33, 5, 0, 2, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (43, 43, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (62, 64, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (103, 2013, 5, 0, 1, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (115, 2025, 1, 0, 19, true, true);
INSERT INTO pdm.pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro) VALUES (267, 2177, 5, 0, 11, true, true);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,33 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: New equipment type and 2 types for Patient Simulation
-- PROJECT: Guez
-- DATE: 2021-11-25
-- VERSION: 1.37
-------------------------------------------------------------------------
-- GLOBAL: PPM;
BEGIN;
DELETE FROM ppm.ppm_equipment_type WHERE id = 1000;
INSERT INTO ppm.ppm_equipment_type ( id, name, min_equip_no, max_equip_no, tra_vulnerability_model_id)
VALUES ( 1000, 'Patient Simulation', 10000, 11000, 0 );
-- clean Types (remove 172, 187, 189, 204, 206, 208, 210-221)
DELETE FROM ppm.ppm_type WHERE length(name) = 0 OR name = 'Type Gerlinde';
INSERT INTO ppm.ppm_type (id, type_class_id, equipment_type_id, name, symbol )
VALUES (301, 3, 1000, 'Patient Simulation MedicalX', 'AP6D|CMPL|10011500001102020000');
INSERT INTO ppm.ppm_type (id, type_class_id, equipment_type_id, name, symbol )
VALUES (302, 3, 1000, 'Patient Simulation Laerdal', 'AP6D|CMPL|10011500001102020000');
ALTER SEQUENCE ppm.ppm_type_id_seq RESTART WITH 303;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,47 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------------------
-- INFO: New columns in AES impact_position_z and source_position x,y,z (BRANCH 3DWS!)
-- PROJECT: Guez
-- DATE: 2021-12-07
-- VERSION: 1.38
------------------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS aes_explosion ADD COLUMN IF NOT EXISTS impact_position_z DOUBLE PRECISION;
ALTER TABLE IF EXISTS rec_explosion_single ADD COLUMN IF NOT EXISTS impact_position_z DOUBLE PRECISION;
ALTER TABLE IF EXISTS aes_explosion_single_central ADD COLUMN IF NOT EXISTS source_position_x DOUBLE PRECISION;
ALTER TABLE IF EXISTS aes_explosion_single_central ADD COLUMN IF NOT EXISTS source_position_y DOUBLE PRECISION;
ALTER TABLE IF EXISTS aes_explosion_single_central ADD COLUMN IF NOT EXISTS source_position_y DOUBLE PRECISION;
ALTER TABLE IF EXISTS rec_explosion_single_central ADD COLUMN IF NOT EXISTS impact_position_z DOUBLE PRECISION;
ALTER TABLE IF EXISTS rec_explosion_single_central ADD COLUMN IF NOT EXISTS source_position_x DOUBLE PRECISION;
ALTER TABLE IF EXISTS rec_explosion_single_central ADD COLUMN IF NOT EXISTS source_position_y DOUBLE PRECISION;
ALTER TABLE IF EXISTS rec_explosion_single_central ADD COLUMN IF NOT EXISTS source_position_y DOUBLE PRECISION;
CREATE OR REPLACE VIEW aes_explosion_area_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_explosion.entity_id AS entity_id, aes_explosion.impact_position_x AS impact_position_x, aes_explosion.impact_position_y AS impact_position_y, aes_explosion.rotation_angle AS rotation_angle, aes_explosion.fire_purpose AS fire_purpose, aes_explosion.fire_request_time AS fire_request_time, aes_explosion.altitude AS altitude, aes_explosion.impact_position_z AS impact_position_z, aes_explosion_area.explosion_id AS explosion_id, aes_explosion_area.impact_width AS impact_width, aes_explosion_area.impact_length AS impact_length, aes_explosion_area.cannon_count AS cannon_count, aes_explosion_area.cannon_rounds AS cannon_rounds, aes_explosion_area.original_effect_start AS original_effect_start, aes_explosion_area.original_effect_duration AS original_effect_duration, aes_explosion_area.remain_explosion_number AS remain_explosion_number, aes_explosion_area.id AS aes_explosion_area_id
FROM aes_explosion_area, aes_entity, aes_explosion
WHERE aes_entity.id = aes_explosion.entity_id AND
aes_explosion.id = aes_explosion_area.explosion_id;
CREATE OR REPLACE VIEW aes_explosion_single_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_explosion.entity_id AS entity_id, aes_explosion.impact_position_x AS impact_position_x, aes_explosion.impact_position_y AS impact_position_y, aes_explosion.rotation_angle AS rotation_angle, aes_explosion.fire_purpose AS fire_purpose, aes_explosion.fire_request_time AS fire_request_time, aes_explosion.altitude AS altitude, aes_explosion.impact_position_z AS impact_position_z, aes_explosion_single.explosion_id AS explosion_id, aes_explosion_single.id AS aes_explosion_single_id
FROM aes_explosion_single, aes_entity, aes_explosion
WHERE aes_entity.id = aes_explosion.entity_id AND
aes_explosion.id = aes_explosion_single.explosion_id;
CREATE OR REPLACE VIEW aes_explosion_single_central_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_explosion.entity_id AS entity_id, aes_explosion.impact_position_x AS impact_position_x, aes_explosion.impact_position_y AS impact_position_y, aes_explosion.rotation_angle AS rotation_angle, aes_explosion.fire_purpose AS fire_purpose, aes_explosion.fire_request_time AS fire_request_time, aes_explosion.altitude AS altitude, aes_explosion.impact_position_z AS impact_position_z, aes_explosion_single.explosion_id AS explosion_id, aes_explosion_single_central.explosion_single_id AS explosion_single_id, aes_explosion_single_central.angle AS angle, aes_explosion_single_central.fuse_type_id AS fuse_type_id, aes_explosion_single_central.source_position_x AS source_position_x, aes_explosion_single_central.source_position_y AS source_position_y, aes_explosion_single_central.source_position_z AS source_position_z, aes_explosion_single_central.id AS aes_explosion_single_central_id
FROM aes_explosion_single_central, aes_entity, aes_explosion, aes_explosion_single
WHERE aes_entity.id = aes_explosion.entity_id AND
aes_explosion.id = aes_explosion_single.explosion_id AND
aes_explosion_single.id = aes_explosion_single_central.explosion_single_id;
COMMIT;
@@ -0,0 +1,23 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Properties column for Type and Participant
-- PROJECT: Guez
-- DATE: 2021-12-14
-- VERSION: 1.39
-------------------------------------------------------------------------
-- GLOBAL: PPM;
BEGIN;
ALTER TABLE IF EXISTS ppm_type ADD COLUMN IF NOT EXISTS properties jsonb;
ALTER TABLE IF EXISTS ppm_participant ADD COLUMN IF NOT EXISTS properties jsonb;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS ppm_participant ADD COLUMN IF NOT EXISTS properties jsonb;
-- in recorded topic is text
ALTER TABLE IF EXISTS rec_participant ADD COLUMN IF NOT EXISTS properties text;
COMMIT;
@@ -0,0 +1,19 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Set transferred true for exercises already saved on Evaluation DB Server (131, 135, 138)
-- PROJECT: Guez
-- DATE: 2022-01-18
-- VERSION: 1.40
-------------------------------------------------------------------------
-- GLOBAL: EXM;
BEGIN;
UPDATE exm.exercise SET transferred = true WHERE id IN (131, 135, 138);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,37 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: clean events: remove AVS event with no streamName, remove duplicates. Add unique key on events.
-- PROJECT: Guez
-- DATE: 2022-01-27
-- VERSION: 1.41
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- remove events with unknown event type
DELETE FROM eem_event WHERE event_type_id <= 0;
-- remove events with no sample time
DELETE FROM eem_event WHERE sample_time <= 0;
-- remove AVS events with no stream name
DELETE FROM eem_event WHERE event_type_id IN (8,9,10) AND (properties->>'streamName' = '') IS NOT FALSE;
-- remove ALL duplicate events (z.B. in ex_130 will be deleted 8823 rows from total 24048)
DELETE FROM eem_event WHERE id IN (SELECT id FROM (SELECT id, ROW_NUMBER() OVER (PARTITION BY sample_time, event_type_id, participant_id, party_id, equipment_number, position_x, position_y, position_z, properties ORDER BY id) AS row_num FROM eem_event) t WHERE t.row_num > 1);
-- another variant, only for AVS events
--DELETE FROM eem_event a USING eem_event b WHERE a.id < b.id AND a.event_type_id IN (8,9,10) AND a.sample_time = b.sample_time AND a.event_type_id = b.event_type_id AND a.properties = b.properties;
-- create unique key on (event_type_id, sample_time, participant_id, party_id, equipment_number, properties)
ALTER TABLE eem_event ADD CONSTRAINT UQ_eem_event_event_type_id_sample_time_participant_id_party_id_ UNIQUE (event_type_id, sample_time, participant_id, party_id, equipment_number, properties);
COMMIT;
@@ -0,0 +1,291 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: update values in PDM building charge effect (GUEZE-479)
-- PROJECT: Guez
-- DATE: 2022-02-03
-- VERSION: 1.42
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 1;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 3;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 4;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 5;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 6;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 7;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 8;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 9;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 10;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 11;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 12;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 13;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 14;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 15;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 16;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 17;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 18;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 19;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 20;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 21;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 22;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 23;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 24;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 25;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 26;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 27;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 1 WHERE charge_type_id = 28;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 29;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 30;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 31;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 32;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 33;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 34;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 35;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 36;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 37;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 38;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 39;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 40;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 41;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 42;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 43;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 44;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 45;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 46;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 47;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 48;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 49;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 50;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 51;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 200 WHERE charge_type_id = 52;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 53;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 54;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 55;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 1 WHERE charge_type_id = 56;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 1 WHERE charge_type_id = 57;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 1 WHERE charge_type_id = 58;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 59;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 60;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 61;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 62;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 63;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 64;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 65;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 66;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 67;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 68;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 69;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 70;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 71;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 72;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 73;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 74;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 75;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 76;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 77;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 78;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 79;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2001;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2002;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2003;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2004;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2005;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2006;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2007;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2008;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2009;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2010;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2011;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2012;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2013;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2014;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2015;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2016;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2017;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2018;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2019;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2020;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2021;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2022;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 1 WHERE charge_type_id = 2023;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2024;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2025;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2026;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2027;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2028;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2029;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2030;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2031;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2032;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2033;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2034;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2035;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2036;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2037;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2038;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2039;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2040;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2041;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2042;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2043;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2044;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2045;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2046;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2047;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2048;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2049;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2050;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2051;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2052;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2053;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 5 WHERE charge_type_id = 2054;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2055;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2056;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2057;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2058;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2059;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2060;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2061;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2062;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2063;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2064;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2065;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2066;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2067;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2068;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2069;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2070;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2071;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2072;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2073;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2074;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2075;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2076;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2077;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2078;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2079;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2080;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2081;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2082;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2083;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2084;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2085;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2086;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2087;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2088;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2089;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2090;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2091;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2092;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2093;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2094;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2095;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2096;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2097;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2098;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2099;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2100;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2101;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2102;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2103;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2104;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2105;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2106;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2107;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2108;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2109;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2110;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2111;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2112;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2113;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2114;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2115;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2116;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2117;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2118;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2119;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2120;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2121;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2122;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2123;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2124;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2125;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2126;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2127;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2128;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2129;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2130;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2131;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2132;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2133;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2134;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2135;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2136;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2137;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2138;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2139;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2140;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2141;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2142;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2143;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2144;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2145;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2146;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2147;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2148;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2149;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2150;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2151;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2152;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2153;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2154;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2155;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2156;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2157;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2158;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2159;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2160;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2161;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2162;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2163;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2164;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2165;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2166;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2167;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2168;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2169;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2170;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2171;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 100 WHERE charge_type_id = 2172;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 200 WHERE charge_type_id = 2173;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 50 WHERE charge_type_id = 2174;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2175;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2176;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2177;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2178;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2179;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2180;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2181;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2182;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2183;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2184;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2185;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 200 WHERE charge_type_id = 2186;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 0 WHERE charge_type_id = 2187;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2188;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2189;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2190;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2191;
UPDATE pdm.pdm_building_charge_effect SET penetration_factor = 10 WHERE charge_type_id = 2192;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,39 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: add columns (vitality, time_vitality, area_id, area_name) in rep_treament_data and rep_treatment_result
-- PROJECT: Guez
-- DATE: 2022-02-16
-- VERSION: 1.43
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS rep_treatment_data ADD COLUMN IF NOT EXISTS vitality INTEGER;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS vitality INTEGER;
ALTER TABLE IF EXISTS rep_treatment_data ADD COLUMN IF NOT EXISTS time_vitality BIGINT;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS time_vitality BIGINT;
UPDATE rep_treatment_data SET vitality = 100 WHERE vitality IS NULL;
UPDATE rep_treatment_result SET vitality = 100 WHERE vitality IS NULL;
UPDATE rep_treatment_data SET time_vitality = time_vulnerability WHERE time_vitality IS NULL OR (time_vitality = 0 AND time_vulnerability > 0);
UPDATE rep_treatment_result SET time_vitality = time_vulnerability WHERE time_vitality IS NULL OR (time_vitality = 0 AND time_vulnerability > 0);
ALTER TABLE IF EXISTS rep_treatment_data ADD COLUMN IF NOT EXISTS area_id INTEGER;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS area_id INTEGER;
ALTER TABLE IF EXISTS rep_treatment_data ADD COLUMN IF NOT EXISTS area_name TEXT;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS area_name TEXT;
ALTER TABLE IF EXISTS rep_treatment_data ADD COLUMN IF NOT EXISTS area_name TEXT;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS area_name TEXT;
COMMIT;
@@ -0,0 +1,108 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add REP event type enum and new treatment timeline tables
-- PROJECT: Guez
-- DATE: 2022-02-21
-- VERSION: 2.01
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
DELETE FROM rep_report_type WHERE id = 18;
INSERT INTO rep_report_type (id, name) VALUES (18, 'TreatmentTimeline');
ALTER TABLE IF EXISTS rep_event_type DROP CONSTRAINT IF EXISTS PK_rep_event_type_id CASCADE;
DROP TABLE IF EXISTS rep_event_type CASCADE;
CREATE SEQUENCE IF NOT EXISTS rep_event_type_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE TABLE IF NOT EXISTS rep_event_type (
id integer DEFAULT nextval(( 'rep_event_type_id_seq'::text)::regclass),
name text
);
ALTER TABLE IF EXISTS rep_event_type ADD CONSTRAINT PK_rep_event_type_id PRIMARY KEY (id);
DELETE FROM rep_event_type;
INSERT INTO rep_event_type (id, name) VALUES (1, 'VBGChanged');
INSERT INTO rep_event_type (id, name) VALUES (2, 'VitalityChanged');
INSERT INTO rep_event_type (id, name) VALUES (3, 'NineLinerSet');
INSERT INTO rep_event_type (id, name) VALUES (4, 'DCUConnected');
INSERT INTO rep_event_type (id, name) VALUES (5, 'FirstTreatment');
INSERT INTO rep_event_type (id, name) VALUES (6, 'Treatment');
INSERT INTO rep_event_type (id, name) VALUES (7, 'TransportInitiated');
INSERT INTO rep_event_type (id, name) VALUES (8, 'EnterFunctionalArea');
INSERT INTO rep_event_type (id, name) VALUES (9, 'PositionChanged');
INSERT INTO rep_event_type (id, name) VALUES (10,'VitalityReset');
ALTER TABLE IF EXISTS rep_treatment_timeline_data DROP CONSTRAINT IF EXISTS PK_rep_treatment_timeline_data_id CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_data DROP CONSTRAINT IF EXISTS FK_rep_treatment_timeline_data_event_type_id_rep_event_type_id CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_data DROP CONSTRAINT IF EXISTS FK_rep_treatment_timeline_data_party_id_ppm_party_id CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_data DROP CONSTRAINT IF EXISTS FK_rep_treatment_timeline_data_participant_id_ppm_participant_i CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_data DROP CONSTRAINT IF EXISTS FK_rep_treatment_timeline_data_participant_type_id_ppm_type_id CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_data DROP CONSTRAINT IF EXISTS UQ_rep_treatment_timeline_data_party_id_participant_type_id_par CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_result DROP CONSTRAINT IF EXISTS PK_rep_treatment_timeline_result_id CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_result DROP CONSTRAINT IF EXISTS FK_rep_treatment_timeline_result_event_type_id_rep_event_type_i CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_result DROP CONSTRAINT IF EXISTS FK_rep_treatment_timeline_result_report_id_rep_report_id CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_result DROP CONSTRAINT IF EXISTS FK_rep_treatment_timeline_result_participant_id_ppm_participant CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_result DROP CONSTRAINT IF EXISTS FK_rep_treatment_timeline_result_participant_type_id_ppm_type_i CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_result DROP CONSTRAINT IF EXISTS IDX_rep_treatment_timeline_result_report_id CASCADE;
ALTER TABLE IF EXISTS rep_treatment_timeline_result DROP CONSTRAINT IF EXISTS UQ_rep_treatment_timeline_result_report_id_participant_id_event CASCADE;
DROP TABLE IF EXISTS rep_treatment_timeline_data CASCADE;
DROP TABLE IF EXISTS rep_treatment_timeline_result CASCADE;
CREATE TABLE IF NOT EXISTS rep_treatment_timeline_data (
id bigint DEFAULT nextval(( 'rep_treatment_timeline_data_id_seq'::text)::regclass),
party_id integer,
participant_type_id integer,
participant_id integer,
event_type_id integer,
event_time bigint,
vulnerability integer,
vitality integer,
properties jsonb
);
CREATE TABLE IF NOT EXISTS rep_treatment_timeline_result (
id bigint DEFAULT nextval(( 'rep_treatment_timeline_result_id_seq'::text)::regclass),
report_id bigint,
participant_type_id integer,
participant_id integer,
participant_name text,
participant_equipment_number integer,
event_type_id integer,
event_time bigint,
vulnerability integer,
vitality integer,
properties jsonb
);
CREATE SEQUENCE IF NOT EXISTS rep_treatment_timeline_data_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS rep_treatment_timeline_result_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS rep_treatment_timeline_data ADD CONSTRAINT PK_rep_treatment_timeline_data_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS rep_treatment_timeline_result ADD CONSTRAINT PK_rep_treatment_timeline_result_id PRIMARY KEY (id);
ALTER TABLE rep_treatment_timeline_data ADD CONSTRAINT FK_rep_treatment_timeline_data_event_type_id_rep_event_type_id FOREIGN KEY (event_type_id) REFERENCES rep_event_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_treatment_timeline_data ADD CONSTRAINT FK_rep_treatment_timeline_data_party_id_ppm_party_id FOREIGN KEY (party_id) REFERENCES ppm_party (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_treatment_timeline_data ADD CONSTRAINT FK_rep_treatment_timeline_data_participant_id_ppm_participant_i FOREIGN KEY (participant_id) REFERENCES ppm_participant (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_treatment_timeline_data ADD CONSTRAINT FK_rep_treatment_timeline_data_participant_type_id_ppm_type_id FOREIGN KEY (participant_type_id) REFERENCES ppm.ppm_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_treatment_timeline_result ADD CONSTRAINT FK_rep_treatment_timeline_result_event_type_id_rep_event_type_i FOREIGN KEY (event_type_id) REFERENCES rep_event_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_treatment_timeline_result ADD CONSTRAINT FK_rep_treatment_timeline_result_report_id_rep_report_id FOREIGN KEY (report_id) REFERENCES rep_report (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_treatment_timeline_result ADD CONSTRAINT FK_rep_treatment_timeline_result_participant_id_ppm_participant FOREIGN KEY (participant_id) REFERENCES ppm_participant (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_treatment_timeline_result ADD CONSTRAINT FK_rep_treatment_timeline_result_participant_type_id_ppm_type_i FOREIGN KEY (participant_type_id) REFERENCES ppm.ppm_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_treatment_timeline_data ADD CONSTRAINT UQ_rep_treatment_timeline_data_party_id_participant_type_id_par UNIQUE (party_id, participant_type_id, participant_id, event_time, event_type_id);
CREATE INDEX IDX_rep_treatment_timeline_result_report_id ON rep_treatment_timeline_result (report_id);
ALTER TABLE rep_treatment_timeline_result ADD CONSTRAINT UQ_rep_treatment_timeline_result_report_id_participant_id_event UNIQUE (report_id, participant_id, event_time, event_type_id);
COMMIT;
@@ -0,0 +1,76 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: new tables for NLOS Service in TAB Proxy
-- PROJECT: Guez
-- DATE: 2022-02-22
-- VERSION: 2.02
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS rec_medical_information DROP CONSTRAINT IF EXISTS PK_rec_medical_information_rec_id CASCADE;
ALTER TABLE IF EXISTS rec_medical_information DROP CONSTRAINT IF EXISTS IDX_rec_medical_information_sample_time CASCADE;
ALTER TABLE IF EXISTS rec_nlos_fire_result DROP CONSTRAINT IF EXISTS PK_rec_nlos_fire_result_rec_id CASCADE;
ALTER TABLE IF EXISTS rec_nlos_fire_result DROP CONSTRAINT IF EXISTS IDX_rec_nlos_fire_result_sample_time CASCADE;
ALTER TABLE IF EXISTS rec_nlos_simulator_direction DROP CONSTRAINT IF EXISTS PK_rec_nlos_simulator_direction_rec_id CASCADE;
ALTER TABLE IF EXISTS rec_nlos_simulator_direction DROP CONSTRAINT IF EXISTS IDX_rec_nlos_simulator_direction_sample_time CASCADE;
DROP TABLE IF EXISTS rec_medical_information CASCADE;
DROP TABLE IF EXISTS rec_nlos_fire_result CASCADE;
DROP TABLE IF EXISTS rec_nlos_simulator_direction CASCADE;
CREATE TABLE IF NOT EXISTS rec_medical_information (
equipment_number integer,
sample_time bigint,
vital_signs smallint,
body_temperature double precision,
blood_oxygen_peripheral_saturation double precision,
systolic_blood_pressure double precision,
diastolic_blood_pressure double precision,
heart_rate double precision,
respiratory_rate double precision,
rec_id bigint DEFAULT nextval(( 'rec_medical_information_rec_id_seq'::text)::regclass),
dds_is_alive boolean DEFAULT true,
insert_time bigint DEFAULT (extract(epoch from now()) * 1000)
);
COMMENT ON TABLE rec_medical_information IS 'recorded data for topic MedicalInformation';
CREATE TABLE IF NOT EXISTS rec_nlos_fire_result (
equipment_number integer,
sample_time bigint,
target_equipment_number integer,
shooting_result integer,
rec_id bigint DEFAULT nextval(( 'rec_nlos_fire_result_rec_id_seq'::text)::regclass),
dds_is_alive boolean DEFAULT true,
insert_time bigint DEFAULT (extract(epoch from now()) * 1000)
);
COMMENT ON TABLE rec_nlos_fire_result IS 'recorded data for topic NlosFireResult';
CREATE TABLE IF NOT EXISTS rec_nlos_simulator_direction (
equipment_number integer,
sample_time bigint,
direction double precision,
rec_id bigint DEFAULT nextval(( 'rec_nlos_simulator_direction_rec_id_seq'::text)::regclass),
dds_is_alive boolean DEFAULT true,
insert_time bigint DEFAULT (extract(epoch from now()) * 1000)
);
COMMENT ON TABLE rec_nlos_simulator_direction IS 'recorded data for topic NlosSimulatorDirection';
CREATE SEQUENCE IF NOT EXISTS rec_medical_information_rec_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS rec_nlos_fire_result_rec_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS rec_nlos_simulator_direction_rec_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS rec_medical_information ADD CONSTRAINT PK_rec_medical_information_rec_id PRIMARY KEY (rec_id);
ALTER TABLE IF EXISTS rec_nlos_fire_result ADD CONSTRAINT PK_rec_nlos_fire_result_rec_id PRIMARY KEY (rec_id);
ALTER TABLE IF EXISTS rec_nlos_simulator_direction ADD CONSTRAINT PK_rec_nlos_simulator_direction_rec_id PRIMARY KEY (rec_id);
CREATE INDEX IDX_rec_medical_information_sample_time ON rec_medical_information (sample_time);
CREATE INDEX IDX_rec_nlos_fire_result_sample_time ON rec_nlos_fire_result (sample_time);
CREATE INDEX IDX_rec_nlos_simulator_direction_sample_time ON rec_nlos_simulator_direction (sample_time);
COMMIT;
@@ -0,0 +1,28 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: New properties column in gear_type and settings for AG-40
-- PROJECT: Guez
-- DATE: 2022-03-24
-- VERSION: 2.03
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
ALTER TABLE IF EXISTS pdm_gear_type ADD COLUMN IF NOT EXISTS properties jsonb;
-- gear type: 1021
UPDATE pdm_gear_type SET properties = '{"maxCharges":12,"canRestock":true,"canSetDefaults":true}' WHERE id = 1021;
-- charges: 67, 73, 74 - minCharge, maxCharge from ChargeType no longer needed
-- UPDATE pdm_charge_type SET properties = '{"minCharge":2, "maxCharge":5}' WHERE id IN (67, 73, 74);
-- gear_type_charge_type
ALTER TABLE IF EXISTS pdm_gear_type_charge_type ADD COLUMN IF NOT EXISTS properties jsonb;
UPDATE pdm_gear_type_charge_type SET properties = '{"factoryDefault":2, "maxCharge": 97}' WHERE gear_type_id = 1021 AND charge_type_id = 67;
UPDATE pdm_gear_type_charge_type SET properties = '{"factoryDefault":5, "maxCharge": 97}' WHERE gear_type_id = 1021 AND charge_type_id = 73;
UPDATE pdm_gear_type_charge_type SET properties = '{"factoryDefault":5, "maxCharge": 97}' WHERE gear_type_id = 1021 AND charge_type_id = 74;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,33 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: New enum MedicalIncident in PDM
-- PROJECT: Guez
-- DATE: 2022-03-21
-- VERSION: 2.04
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
ALTER TABLE IF EXISTS pdm_medical_incident DROP CONSTRAINT IF EXISTS PK_pdm_medical_incident_id CASCADE;
DROP TABLE IF EXISTS pdm_medical_incident CASCADE;
CREATE TABLE IF NOT EXISTS pdm_medical_incident (
id integer DEFAULT nextval(( 'pdm.pdm_medical_incident_id_seq'::text)::regclass),
name text
);
CREATE SEQUENCE IF NOT EXISTS pdm_medical_incident_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS pdm_medical_incident ADD CONSTRAINT PK_pdm_medical_incident_id PRIMARY KEY (id);
INSERT INTO pdm_medical_incident (id, name) VALUES (-1, 'None');
INSERT INTO pdm_medical_incident (id, name) VALUES (0, 'Intubation');
INSERT INTO pdm_medical_incident (id, name) VALUES (1, 'Tourniquet');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,20 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Drop FK on material_id to avoid losing report data
-- PROJECT: Guez
-- DATE: 2022-03-23
-- VERSION: 2.05
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS rep_sanitation_material_data DROP CONSTRAINT IF EXISTS FK_rep_sanitation_material_data_pdm_sanitation_material CASCADE;
ALTER TABLE IF EXISTS rep_sanitation_material_result DROP CONSTRAINT IF EXISTS FK_rep_sanitation_material_result_pdm_sanitation_material CASCADE;
COMMIT;
@@ -0,0 +1,29 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: new column for marker_description added
-- PROJECT: Guez
-- DATE: 2022-03-24
-- VERSION: 2.06
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- mrk_marker_type
INSERT INTO mrk_marker_type (id, name) VALUES (8, 'MedicalIncident');
-- mrk_marker_description
ALTER TABLE IF EXISTS mrk_marker_description DROP CONSTRAINT IF EXISTS FK_mrk_marker_description_medical_incident_id_pdm_medical_incid CASCADE;
ALTER TABLE mrk_marker_description ADD medical_incident_id integer;
ALTER TABLE mrk_marker_description ADD CONSTRAINT FK_mrk_marker_description_medical_incident_id_pdm_medical_incid FOREIGN KEY (medical_incident_id) REFERENCES pdm.pdm_medical_incident (id) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
@@ -0,0 +1,20 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: MedicalData column in rec_dynamic_participant_data
-- PROJECT: Guez
-- DATE: 2022-03-25
-- VERSION: 2.07
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- PPM
ALTER TABLE IF EXISTS rec_dynamic_participant_data ADD COLUMN IF NOT EXISTS medical_data jsonb;
COMMIT;
@@ -0,0 +1,82 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Changes from PvSanDyn feature branch
-- PROJECT: Guez
-- DATE: 2022-03-25
-- VERSION: 2.08
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
-- drop PKs
ALTER TABLE IF EXISTS pdm_sanitation_injury DROP CONSTRAINT IF EXISTS PK_pdm_sanitation_injury_id CASCADE;
ALTER TABLE IF EXISTS pdm_sanitation_injury_kind DROP CONSTRAINT IF EXISTS PK_pdm_sanitation_injury_kind_id CASCADE;
ALTER TABLE IF EXISTS pdm_sanitation_injury_place_1 DROP CONSTRAINT IF EXISTS PK_pdm_sanitation_injury_place_1_id CASCADE;
ALTER TABLE IF EXISTS pdm_sanitation_injury_place_2 DROP CONSTRAINT IF EXISTS PK_pdm_sanitation_injury_place_2_id CASCADE;
-- drop tables
DROP TABLE IF EXISTS pdm_sanitation_injury CASCADE;
DROP TABLE IF EXISTS pdm_sanitation_injury_kind CASCADE;
DROP TABLE IF EXISTS pdm_sanitation_injury_place_1 CASCADE;
DROP TABLE IF EXISTS pdm_sanitation_injury_place_2 CASCADE;
-- create tables
CREATE TABLE IF NOT EXISTS pdm_sanitation_injury (
id integer,
name text,
kind integer,
place_1 integer,
place_2 integer,
vbg integer
);
CREATE TABLE IF NOT EXISTS pdm_sanitation_injury_kind (
id integer,
name text,
version text
);
CREATE TABLE IF NOT EXISTS pdm_sanitation_injury_place_1 (
id integer,
name text,
version text
);
CREATE TABLE IF NOT EXISTS pdm_sanitation_injury_place_2 (
id integer,
name text,
version text
);
-- add PKs
ALTER TABLE IF EXISTS pdm_sanitation_injury ADD CONSTRAINT PK_pdm_sanitation_injury_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS pdm_sanitation_injury_kind ADD CONSTRAINT PK_pdm_sanitation_injury_kind_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS pdm_sanitation_injury_place_1 ADD CONSTRAINT PK_pdm_sanitation_injury_place_1_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS pdm_sanitation_injury_place_2 ADD CONSTRAINT PK_pdm_sanitation_injury_place_2_id PRIMARY KEY (id);
-- version in sanitation_material
ALTER TABLE IF EXISTS pdm_sanitation_material ADD COLUMN IF NOT EXISTS version text;
-- sanitation procedures
ALTER TABLE IF EXISTS pdm_sanitation_procedures DROP CONSTRAINT IF EXISTS PK_pdm_sanitation_procedures_id CASCADE;
DROP TABLE IF EXISTS pdm_sanitation_procedures CASCADE;
CREATE TABLE IF NOT EXISTS pdm_sanitation_procedures (
id integer,
name text,
type text,
type_id integer,
minimum_qualification integer,
long_name text,
data_code bigint,
version text
);
ALTER TABLE IF EXISTS pdm_sanitation_procedures ADD CONSTRAINT PK_pdm_sanitation_procedures_id PRIMARY KEY (id);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,19 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: New column can_ss_fir_san in whg.ausstg_typen
-- PROJECT: Guez
-- DATE: 2022-04-13
-- VERSION: 2.09
-------------------------------------------------------------------------
-- GLOBAL: WHG;
BEGIN;
ALTER TABLE IF EXISTS whg.ausstg_typen ADD COLUMN IF NOT EXISTS can_ss_fir_san BOOLEAN DEFAULT false;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,27 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Update chargeType PzAbwRiMi
-- PROJECT: Guez
-- DATE: 2024-09-20
-- VERSION: 2.100
------------------1------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
UPDATE pdm_charge_type SET name = 'PzAbwRiMi Typ 1 (DM22)', short_name = 'PzAbwRiMi Typ 1 (DM22)' WHERE id = 253;
UPDATE pdm_charge_type SET name = 'PzAbwRiMi Typ 2 (TM83)', short_name = 'PzAbwRiMi Typ 2 (TM83)' WHERE id = 254;
UPDATE pdm_translation SET key = 'PzAbwRiMi Typ 1 (DM22)', translation = 'Off Route Mine Type 1 (DM22)'
WHERE key = 'PzAbwRiMi 1' and iso_code = 'en_GB';
UPDATE pdm_translation SET key = 'PzAbwRiMi Typ 2 (TM83)', translation = 'Off Route Mine Type 2 (TM83)'
WHERE key = 'PzAbwRiMi 2' and iso_code = 'en_GB';
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+46
View File
@@ -0,0 +1,46 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Update operator default rights
-- PROJECT: Guez
-- DATE: 2024-09-23
-- VERSION: 2.101
------------------1------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
DELETE FROM opm_group_group WHERE group_id = 1001 and is_member_of_group_id = 33687040;
DELETE FROM opm_group_group WHERE group_id = 1001 and is_member_of_group_id = 34799616;
DELETE FROM opm_group_group WHERE group_id = 1005 and is_member_of_group_id = 33687040;
DELETE FROM opm_group_group WHERE group_id = 1005 and is_member_of_group_id = 34799616;
DELETE FROM opm_group_group WHERE group_id = 1007 and is_member_of_group_id = 33687040;
DELETE FROM opm_group_group WHERE group_id = 1007 and is_member_of_group_id = 34799616;
DELETE FROM opm_group_group WHERE group_id = 1009 and is_member_of_group_id = 33687040;
DELETE FROM opm_group_group WHERE group_id = 1009 and is_member_of_group_id = 34799616;
-- Organisator
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (1001, 33687040); -- ExplosionCluster
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (1001, 34799616); -- MineSingleVirtual
-- Controller
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (1005, 33687040); -- ExplosionCluster
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (1005, 34799616); -- MineSingleVirtual
-- Exercise Controller
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (1007, 33687040); -- ExplosionCluster
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (1007, 34799616); -- MineSingleVirtual
-- Evaluation
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (1009, 33687040); -- ExplosionCluster
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (1009, 34799616); -- MineSingleVirtual
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,31 @@
-- $Id: 2.100_guez_pdm_charge_type.upd 63843 2024-09-23 07:28:02Z rathje $
-- $HeadURL: svn://10.196.0.54/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.100_guez_pdm_charge_type.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: Table pdm_fuse_type_factor (PDM)
-- PROJECT: Guez
-- DATE: 2024-09-24
-- VERSION: 2.102
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DROP TABLE IF EXISTS pdm_fuse_type_factor;
CREATE TABLE pdm_fuse_type_factor (
id integer DEFAULT nextval(( 'pdm_fuse_type_factor_id_seq'::text)::regclass),
fuse_type_id integer,
factor double precision
);
CREATE SEQUENCE IF NOT EXISTS pdm_fuse_type_factor_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE pdm_fuse_type_factor ADD CONSTRAINT PK_pdm_fuse_type_factor_id PRIMARY KEY (id);
ALTER TABLE pdm_fuse_type_factor ADD CONSTRAINT FK_pdm_fuse_type_factor_fuse_type_id_fuse_type_id
FOREIGN KEY (fuse_type_id) REFERENCES pdm_fuse_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,20 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Properties column for table exercise
-- PROJECT: Guez
-- DATE: 2024-09-24
-- VERSION: 2.103
-------------------------------------------------------------------------
-- GLOBAL: EXM;
BEGIN;
ALTER TABLE IF EXISTS exercise ADD COLUMN IF NOT EXISTS properties jsonb;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,27 @@
-- $Id: 1.34_guez_ex_clean_eem.upd 59579 2023-06-29 13:24:58Z thoden $
-- $HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/1.34_guez_ex_clean_eem.upd $
-- $Author: rudolphus $
-------------------------------------------------------------------------
-- INFO: Rename Krankenhaus -> Universität
-- PROJECT: Guez
-- DATE: 2024-09-30
-- VERSION: 2.104
-------------------------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
UPDATE ism_structure_element SET name = 'Universität Ost', display_name = 'Universität Ost' WHERE name = 'Krankenhaus Ost';
UPDATE ism_structure_element SET name = 'KAA_17_Universität Ost', display_name = 'Universität Ost' WHERE name = 'KAA_17_Krankenhaus Ost';
UPDATE ism_structure_element SET name = 'Universität Süd', display_name = 'Universität Süd' WHERE name = 'Krankenhaus Süd';
UPDATE ism_structure_element SET name = 'KAA_15_Universität Süd', display_name = 'Universität Süd' WHERE name = 'KAA_15_Krankenhaus Süd';
UPDATE ism_structure_element SET name = 'Universität West', display_name = 'Universität West' WHERE name = 'Krankenhaus West';
UPDATE ism_structure_element SET name = 'KAA_16_Universität West', display_name = 'Universität West' WHERE name = 'KAA_16_Krankenhaus West';
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,33 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Update chargeType Anti Personal Mine (BoobyTrap) & LTD
-- PROJECT: Guez
-- DATE: 2024-10-08
-- VERSION: 2.105
------------------1------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
UPDATE db_version SET version = '2.64' WHERE id = 27;
UPDATE pdm_charge_type SET name = 'SchAbwMi', short_name = 'SchAbwMi' WHERE id = 251;
UPDATE pdm_charge_type SET name = 'SchAbwRiMi', short_name = 'SchAbwRiMi' WHERE id = 252;
UPDATE pdm_translation SET key = 'SchAbwMi', translation = 'Anti Personal Mine'
WHERE key = 'Verdeckte Ladung 1' and iso_code = 'en_GB';
UPDATE pdm_translation SET key = 'SchAbwRiMi', translation = 'Anti Personal Fragmentation Mine'
WHERE key = 'Verdeckte Ladung 2' and iso_code = 'en_GB';
UPDATE pdm.pdm_charge_type SET predefined_name = 'Laser Target Designator',
name = 'Laser Target Designator', short_name = 'Laser Target Designator' WHERE ID = 2179;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,79 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: New table for report air support
-- PROJECT: Guez
-- DATE: 2024-10-23
-- VERSION: 2.106
------------------1------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS rep_air_support_data DROP CONSTRAINT IF EXISTS PK_rep_air_support_data_id CASCADE;
ALTER TABLE IF EXISTS rep_air_support_data DROP CONSTRAINT IF EXISTS FK_rep_air_support_data_party_id_ppm_party_id CASCADE;
ALTER TABLE IF EXISTS rep_air_support_data DROP CONSTRAINT IF EXISTS UQ_rep_air_support_data_party_id_event_time_participant_id_part CASCADE;
ALTER TABLE IF EXISTS rep_air_support_impact_data DROP CONSTRAINT IF EXISTS PK_rep_air_support_impact_data_id CASCADE;
ALTER TABLE IF EXISTS rep_air_support_result DROP CONSTRAINT IF EXISTS PK_rep_air_support_result_id CASCADE;
ALTER TABLE IF EXISTS rep_air_support_result DROP CONSTRAINT IF EXISTS FK_rep_air_support_result_report_id_rep_report_id CASCADE;
ALTER TABLE IF EXISTS rep_air_support_result DROP CONSTRAINT IF EXISTS IDX_rep_air_support_result_report_id CASCADE;
DROP TABLE IF EXISTS rep_air_support_data CASCADE;
DROP TABLE IF EXISTS rep_air_support_impact_data CASCADE;
DROP TABLE IF EXISTS rep_air_support_result CASCADE;
CREATE TABLE IF NOT EXISTS rep_air_support_data (
id bigint DEFAULT nextval(( 'rep_air_support_data_id_seq'::text)::regclass),
party_id integer,
event_time bigint,
participant_id integer,
participant_type_id integer,
charge_type_id integer,
aes_party_id integer,
building_id integer,
hit integer,
hit_building integer,
hit_friendly_fire integer,
vulnerability_state integer
);
CREATE TABLE IF NOT EXISTS rep_air_support_impact_data (
id bigint DEFAULT nextval(( 'rep_air_support_impact_data_id_seq'::text)::regclass),
event_time bigint,
charge_type_id integer,
party_id integer,
aes_id integer,
impacts integer
);
CREATE TABLE IF NOT EXISTS rep_air_support_result (
id bigint DEFAULT nextval(( 'rep_air_support_result_id_seq'::text)::regclass),
report_id bigint,
start_time bigint,
end_time bigint,
charge_type_id integer,
impacts integer,
vulnerability_state integer,
hits_buildings integer,
hits integer,
hits_friendly_fire integer
);
CREATE SEQUENCE IF NOT EXISTS rep_air_support_data_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS rep_air_support_impact_data_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS rep_air_support_result_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS rep_air_support_data ADD CONSTRAINT PK_rep_air_support_data_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS rep_air_support_impact_data ADD CONSTRAINT PK_rep_air_support_impact_data_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS rep_air_support_result ADD CONSTRAINT PK_rep_air_support_result_id PRIMARY KEY (id);
ALTER TABLE rep_air_support_data ADD CONSTRAINT FK_rep_air_support_data_party_id_ppm_party_id FOREIGN KEY (party_id) REFERENCES ppm_party (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_air_support_result ADD CONSTRAINT FK_rep_air_support_result_report_id_rep_report_id FOREIGN KEY (report_id) REFERENCES rep_report (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE rep_air_support_data ADD CONSTRAINT UQ_rep_air_support_data_party_id_event_time_participant_id_part UNIQUE (party_id, event_time, participant_id, participant_type_id, charge_type_id, building_id, vulnerability_state);
CREATE INDEX IDX_rep_air_support_result_report_id ON rep_air_support_result (report_id);
COMMIT;
@@ -0,0 +1,22 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Insert new EventType ExplosionCluster
-- PROJECT: Guez
-- DATE: 2024-11-27
-- VERSION: 2.107
------------------1------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DELETE FROM pdm_event_type WHERE id = 45;
INSERT INTO pdm_event_type (id, name) VALUES (45, 'ExplosionCluster');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+22
View File
@@ -0,0 +1,22 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: GUEZE-3308 effect VLAD
-- PROJECT: Guez
-- DATE: 2025-01-21
-- VERSION: 2.108
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
-- Update pdm_charge_type
update pdm.pdm_charge_type set properties = jsonb_set(properties, '{remainingTasCode}', '69' ) where id = 251;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+30
View File
@@ -0,0 +1,30 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: GUEZE-3314 Update symbols "Feuereinheit"
-- PROJECT: Guez
-- DATE: 2025-02-13
-- VERSION: 2.109
-------------------------------------------------------------------------
-- GLOBAL: PPM;
BEGIN;
-- Update ppm_type
UPDATE ppm_type SET symbol = 'AP6D|CMPL|10011000141303010000' WHERE id = 308;
UPDATE ppm_type SET symbol = 'AP6D|CMPL|10011000141308000000' WHERE id = 309;
UPDATE ppm_type SET symbol = 'AP6D|CMPL|10011000141303000000' WHERE id = 310;
-- Add/update ppm_template
UPDATE ppm_template SET symbol = 'AP6D|CMPL|10011000141303010000' WHERE id = 5140;
UPDATE ppm_template SET symbol = 'AP6D|CMPL|10011000141308000000' WHERE id = 5144;
UPDATE ppm_template SET symbol = 'AP6D|CMPL|10011000141303000000' WHERE id = 5148;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,20 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: SanitationOriginatorEquipNo column in rec_dynamic_participant_data
-- PROJECT: Guez
-- DATE: 2022-04-22
-- VERSION: 2.10
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- PPM
ALTER TABLE IF EXISTS rec_dynamic_participant_data ADD COLUMN IF NOT EXISTS sanitation_originator_equip_no INTEGER;
COMMIT;
@@ -0,0 +1,56 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: E01562-19 Erweiterung der Munitionsverwaltung
-- PROJECT: ADLER
-- DATE: 2024-03-24
-- VERSION: 2.110
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
-- delete rocket smart and rocket vulcano
DELETE FROM pdm_charge_type WHERE id IN (373, 391, 392, 393);
-- update existing munitions
UPDATE pdm.pdm_charge_type SET predefined_name = NULL, name = 'High Explosive', short_name = 'HE', properties = '{"impactRadius":25, "impactEdgeLength":25, "hazardDistance": 250, "fuseTypes" : [ { "fuseType" : 0, "chargeLegacyId" : 2}, { "fuseType" : 1, "chargeLegacyId": 1}, {"fuseType" : 2, "chargeLegacyId" : 1}, {"fuseType" : 3, "chargeLegacyId" : 1}]}', dis_entity = '2.9.222.2.19.1.0', charge_legacy_id = 1 WHERE ID = 371;
UPDATE pdm.pdm_charge_type SET predefined_name = NULL, name = 'SMArt', short_name = 'SMArt', properties = '{"impactRadius":25, "impactEdgeLength":50, "isSmart":true, "searchRadius":150, "hazardDistance": 250, "fuseTypes" :[ { "fuseType" : 0, "chargeLegacyId" : 4}, { "fuseType" : 1, "chargeLegacyId": 4}, {"fuseType" : 2, "chargeLegacyId" : 4}]}', dis_entity = '2.255.201.4', charge_legacy_id = 4 WHERE ID = 374;
UPDATE pdm.pdm_charge_type SET predefined_name = NULL, name = 'Nebel', short_name = 'Nebel', properties = '{"impactRadius":25, "impactEdgeLength":25, "isSmoke":true, "hazardDistance": 250, "fuseTypes" : [ {"fuseType": 3, "chargeLegacyId" : 5}]}', dis_entity = '2.255.201.5', charge_legacy_id = 5 WHERE ID = 375;
UPDATE pdm.pdm_charge_type SET predefined_name = NULL, name = 'Präzisionsmunition LASER', short_name = 'PGM', properties = '{"impactRadius":25, "impactEdgeLength":25, "hazardDistance": 250, "fuseTypes" : [ {"fuseType": 1, "chargeLegacyId" : 6}], "isLaserGuidable" : true}', dis_entity = '2.255.201.3', charge_legacy_id = 6 WHERE ID = 376;
UPDATE pdm.pdm_charge_type SET predefined_name = NULL, name = 'High Explosive', short_name = 'HE', properties = '{"impactRadius":15, "impactEdgeLength":25, "hazardDistance": 250, "fuseTypes" : [ { "fuseType" : 0, "chargeLegacyId" : 11}, { "fuseType" : 1, "chargeLegacyId": 10}, {"fuseType" : 2, "chargeLegacyId" : 10}, {"fuseType" : 3, "chargeLegacyId" : 1}]}', dis_entity = '2.9.225.2.8.18.0', charge_legacy_id = 10 WHERE ID = 381;
UPDATE pdm.pdm_charge_type SET predefined_name = NULL, name = 'Nebel', short_name = 'Nebel', properties = '{"impactRadius":25, "impactEdgeLength":25, "isSmoke":true, "hazardDistance": 250, "fuseTypes" : [ {"fuseType": 3, "chargeLegacyId" : 5}]}', dis_entity = '2.255.201.5', charge_legacy_id = 5 WHERE ID = 385;
-- insert new munitions
INSERT INTO pdm.pdm_charge_type (id, predefined_name, name, short_name, properties, dis_entity, charge_legacy_id) VALUES (394, NULL, 'GMLRS Unitary', 'GMLRS', '{"impactRadius":25, "impactEdgeLength":25, "hazardDistance": 250, "fuseTypes" : [ { "fuseType" : 1, "chargeLegacyId" : 394}]}', '2.255.201.3', NULL);
INSERT INTO pdm.pdm_charge_type (id, predefined_name, name, short_name, properties, dis_entity, charge_legacy_id) VALUES (395, NULL, 'Mine DM72', 'DM72', '{"impactRadius":25, "maxEffectShows":2, "impactEdgeLength":25, "hazardDistance": 250, "fuseTypes" : [ { "fuseType" : 1, "chargeLegacyId" : 395}]}', '2.255.201.3', NULL);
-- link new munitions to a gear type --> make the rockets rockets
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (901, 394, 25190);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (901, 395, 25190);
-- translations
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'ChargeType', 'High Explosive', 'High Explosive');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'shortName', 'ChargeType', 'HE', 'HE');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'ChargeType', 'SMArt', 'EFP');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'shortName', 'ChargeType', 'SMArt', 'EFP');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'ChargeType', 'Nebel', 'Nebel');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'shortName', 'ChargeType', 'Nebel', 'Nebel');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'ChargeType', 'Präzisionsmunition LASER', 'Laser-guided munition');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'shortName', 'ChargeType', 'PGM', 'PGM');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'ChargeType', 'High Explosive', 'High Explosive');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'shortName', 'ChargeType', 'HE', 'HE');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'ChargeType', 'Nebel', 'Nebel');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'shortName', 'ChargeType', 'Nebel', 'Nebel');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'ChargeType', 'GMLRS Unitary', 'GMLRS Unitary');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'shortName', 'ChargeType', 'GMLRS', 'GMLRS');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'name', 'ChargeType', 'Mine DM72', 'Mine DM72');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation) VALUES ('en_GB', 'shortName', 'ChargeType', 'DM72', 'DM72');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,44 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: ETBUAS-1 Teilnehmer Typ für Drohnen
-- PROJECT: ETB-UAS
-- DATE: 2025-04-02
-- VERSION: 2.111
-------------------------------------------------------------------------
-- GLOBAL: PPM;
BEGIN;
DELETE FROM ppm_equipment_type where id = 2000;
DELETE FROM ppm_type where type_class_id = 5 and equipment_type_id = 2000;
INSERT INTO ppm_equipment_type (id, name, min_equip_no, max_equip_no, tra_vulnerability_model_id) VALUES(2000, 'UAS', 18000, 19000, 0);
INSERT INTO ppm_type (type_class_id, equipment_type_id, name, symbol, radio_count, hierarchy_level, dis_entities, properties) VALUES (5, 2000, 'UAS', 'AP6D|CMPL|10010100001103000000' , 0, 0, '{3001000001000000000}', '{"isUAS":true}');
ALTER TABLE IF EXISTS ppm_uas DROP CONSTRAINT IF EXISTS PK_ppm_uas_id CASCADE;
DROP SEQUENCE IF EXISTS ppm_uas_id_seq;
DROP TABLE IF EXISTS ppm_uas CASCADE;
CREATE TABLE IF NOT EXISTS ppm_uas (
id integer DEFAULT nextval(( 'ppm.ppm_uas_id_seq'::text)::regclass), -- internal id
device_identifier text, -- external id from the device
participant_id integer,
uas_state_id integer,
configurationXmlId integer,
exerciseId integer,
hostname text,
hostport integer,
properties jsonb
);
COMMENT ON COLUMN ppm_uas.id IS 'internal id';
COMMENT ON COLUMN ppm_uas.device_identifier IS 'external id from the device';
CREATE SEQUENCE IF NOT EXISTS ppm_uas_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS ppm_uas ADD CONSTRAINT PK_ppm_uas_id PRIMARY KEY (id);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,34 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: [ETB UASETBUAS-5] Benutzerrecht UAS
-- PROJECT: 3DWS
-- DATE: 2024-03-24
-- VERSION: 2.112
-------------------------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
-- delete old wrong rights, too
DELETE FROM opm_group WHERE id IN (120979456, 117440513, 117506304);
DELETE FROM opm_access_control_level WHERE id IN (120979457, 117506050, 117506305);
DELETE FROM opm_acl_allow WHERE group_id = 117440513;
DELETE FROM opm_group_group WHERE group_id IN (120979456, 117506304);
-- UAS Control - 0x7010100 = 117506304
INSERT INTO opm_group (id, name, description, type_id, is_hidden) VALUES (117506304, 'UAS Control', 'Control UAS', 4, false);
--- Base: 117506304, UasControl - 117506305 = 0x7010101
INSERT INTO opm_access_control_level (id, name, description) VALUES (117506305, 'UasControl', '');
INSERT INTO opm_group (id, name, description, type_id, is_hidden) VALUES (117440513, 'UasControl', '', 1, true);
INSERT INTO opm_acl_allow (group_id, acl_id) VALUES (117440513, 117506305); -- group_id is: 117440513 = 0x7000001
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (117506304, 117440513); -- UAS Control
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,62 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: [GUEZ GUEZE-3159] Ändern der Wirkradien und Wirkungsbereiche
-- PROJECT: 3DWS
-- DATE: 2025-04-16
-- VERSION: 2.113
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":2, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 130}, { "severityType" : 3, "iedClass": 3, "impactRadius": 900}]}', dis_entity = '2.254.17.2', charge_legacy_id = 21 WHERE ID = 432;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":3, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 175}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1300}]}', dis_entity = '2.254.17.3', charge_legacy_id = 21 WHERE ID = 433;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":4, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 265}, { "severityType" : 3, "iedClass": 3, "impactRadius": 700}]}', dis_entity = '2.254.17.4', charge_legacy_id = 21 WHERE ID = 434;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":5, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 340}, { "severityType" : 3, "iedClass": 3, "impactRadius": 750}]}', dis_entity = '2.254.17.5', charge_legacy_id = 21 WHERE ID = 435;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":6, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 280}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1100}]}', dis_entity = '2.254.17.6', charge_legacy_id = 22 WHERE ID = 436;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":7, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 320}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1400}]}', dis_entity = '2.254.17.7', charge_legacy_id = 22 WHERE ID = 437;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":8, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 355}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1600}]}', dis_entity = '2.254.17.8', charge_legacy_id = 22 WHERE ID = 438;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":9, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 410}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1100}]}', dis_entity = '2.254.17.9', charge_legacy_id = 22 WHERE ID = 439;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":10, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 410}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1400}]}', dis_entity = '2.254.17.10', charge_legacy_id = 22 WHERE ID = 440;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":11, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 405}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1300}]}', dis_entity = '2.254.17.11', charge_legacy_id = 22 WHERE ID = 441;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":12, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 275}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1100}]}', dis_entity = '2.254.17.12', charge_legacy_id = 23 WHERE ID = 442;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":13, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 320}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1400}]}', dis_entity = '2.254.17.13', charge_legacy_id = 23 WHERE ID = 443;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":14, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 340}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1600}]}', dis_entity = '2.254.17.14', charge_legacy_id = 23 WHERE ID = 444;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":15, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 280}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1100}]}', dis_entity = NULL, charge_legacy_id = 22 WHERE ID = 445;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":16, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 320}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1400}]}', dis_entity = NULL, charge_legacy_id = 22 WHERE ID = 446;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":17, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 355}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1600}]}', dis_entity = NULL, charge_legacy_id = 22 WHERE ID = 447;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":18, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 275}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1100}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 448;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":19, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 340}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1600}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 449;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":20, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 355}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1600}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 450;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":21, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 320}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1400}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 451;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":22, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 320}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1400}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 452;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":23, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 290}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1100}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 453;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":24, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 290}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1100}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 454;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":25, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 290}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1100}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 455;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":26, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 380}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1600}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 456;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":27, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 130}, { "severityType" : 3, "iedClass": 3, "impactRadius": 900}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 457;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":28, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 130}, { "severityType" : 3, "iedClass": 3, "impactRadius": 900}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 458;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":29, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 130}, { "severityType" : 3, "iedClass": 3, "impactRadius": 900}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 459;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":30, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 130}, { "severityType" : 3, "iedClass": 3, "impactRadius": 900}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 460;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":31, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 175}, { "severityType" : 3, "iedClass": 3, "impactRadius": 1300}]}', dis_entity = NULL, charge_legacy_id = 23 WHERE ID = 461;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":32, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 2, "impactRadius": 95}]}', dis_entity = NULL, charge_legacy_id = 20 WHERE ID = 462;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":33, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 2, "impactRadius": 95}]}', dis_entity = NULL, charge_legacy_id = 20 WHERE ID = 463;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":34, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 2, "impactRadius": 95}]}', dis_entity = NULL, charge_legacy_id = 20 WHERE ID = 464;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":35, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 265}, { "severityType" : 3, "iedClass": 3, "impactRadius": 700}]}', dis_entity = NULL, charge_legacy_id = 21 WHERE ID = 466;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":36, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 265}, { "severityType" : 3, "iedClass": 3, "impactRadius": 700}]}', dis_entity = NULL, charge_legacy_id = 21 WHERE ID = 467;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":37, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 265}, { "severityType" : 3, "iedClass": 3, "impactRadius": 700}]}', dis_entity = NULL, charge_legacy_id = 21 WHERE ID = 468;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":38, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 290}, { "severityType" : 3, "iedClass": 3, "impactRadius": 700}]}', dis_entity = NULL, charge_legacy_id = 21 WHERE ID = 469;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":39, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 290}, { "severityType" : 3, "iedClass": 3, "impactRadius": 700}]}', dis_entity = NULL, charge_legacy_id = 21 WHERE ID = 470;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":40, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 290}, { "severityType" : 3, "iedClass": 3, "impactRadius": 700}]}', dis_entity = NULL, charge_legacy_id = 21 WHERE ID = 471;
UPDATE pdm.pdm_charge_type SET properties = '{"nasatId":41, "hazardDistance": 250, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 340}, { "severityType" : 3, "iedClass": 3, "impactRadius": 750}]}', dis_entity = NULL, charge_legacy_id = 21 WHERE ID = 472;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,34 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: [E01562-37] Feuereinheiten aus dem SAA
-- PROJECT: ADLER
-- DATE: 2025-06-19
-- VERSION: 2.118
-------------------------------------------------------------------------
-- GLOBAL: PPM;
BEGIN;
DELETE FROM ppm.ppm_type WHERE name ilike '%Adler)';
INSERT INTO ppm.ppm_type (type_class_id, equipment_type_id, name, symbol, radio_count, hierarchy_level, dis_entities, properties) VALUES
( 2, NULL, 'Feuereinheit (Haubitze Adler)', 'AP6D|CMPL|10011000001303010000' , 0, 0, '{}', '{"isArtillery": true, "gearClassId": 7, "isMovable": false, "adlerType": "PZH", "formation": {"geometry": "line", "angle": -1, "distance": -1, "distanceSets": {"Locked": 25, "Unlocked": 50}}}'),
( 2, NULL, 'Feuereinheit (Mörser Adler)', 'AP6D|CMPL|10011000001308000000' , 0, 0, '{}', '{"isArtillery": true, "gearClassId": 8, "isMovable": false, "adlerType": "MRS", "formation": {"geometry": "line", "angle": -1, "distance": -1, "distanceSets": {"Locked": 25, "Unlocked": 50}}}'),
( 2, NULL, 'Feuereinheit (Rakete Adler)', 'AP6D|CMPL|10011000001303000000' , 0, 0, '{}', '{"isArtillery": true, "gearClassId": 20,"isMovable": false, "adlerType": "MARS", "formation": {"geometry": "line", "angle": -1, "distance": -1, "distanceSets": {"Locked": 25, "Unlocked": 50}}}');
INSERT INTO ppm.ppm_type (type_class_id, equipment_type_id, name, symbol, radio_count, hierarchy_level, dis_entities, properties) VALUES
( 7, NULL, 'Ladeplatz (Adler)', 'AP6D|CMPL|10011500001109020000' , 0, 0, '{}', '{"isArtillery": true, "isMovable": false, "adlerType": "LP" }'),
( 7, NULL, 'Haubitze (Adler)', 'AP6D|CMPL|10011500001109020000' , 0, 0, '{}', '{"isArtillery": true, "gearClassId": 7, "isMovable": false, "adlerType": "PZH" }'),
( 7, NULL, 'Mörser (Adler)', 'AP6D|CMPL|10011500001114020000' , 0, 0, '{}', '{"isArtillery": true, "gearClassId": 8, "isMovable": false, "adlerType": "MRS" }'),
( 7, NULL, 'Rakete (Adler)', 'AP6D|CMPL|10011500001116020000' , 0, 0, '{}', '{"isArtillery": true, "gearClassId": 20, "isMovable": false, "adlerType": "MARS"}');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+56
View File
@@ -0,0 +1,56 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
----------------------------------------------------------------------------------
-- INFO: [E01562-59] New ets_nom user and nom schema
-- PROJECT: ADLER
-- DATE: 2025-06-27
-- VERSION: 2.119
----------------------------------------------------------------------------------
-- GLOBAL: PUBLIC;
BEGIN;
SELECT create_user_if_not_exists('ets_nom');
GRANT ets_ro TO ets_nom;
GRANT ets_nom TO ets_admin;
CREATE SCHEMA IF NOT EXISTS nom;
ALTER SCHEMA nom OWNER TO ets_nom;
GRANT ALL ON SCHEMA nom TO ets_admin;
GRANT USAGE ON SCHEMA nom TO ets_ro;
DROP TABLE IF EXISTS nom.db_version;
DROP SEQUENCE IF EXISTS nom.db_version_id_seq;
-- Table db_version
CREATE TABLE nom.db_version (
id integer DEFAULT nextval(('nom.db_version_id_seq'::text)::regclass),
description text,
version text,
updated bigint DEFAULT (date_part('epoch'::text, now()) * (1000)::double precision),
success boolean DEFAULT true,
message text
);
ALTER TABLE nom.db_version OWNER TO postgres;
CREATE SEQUENCE nom.db_version_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
ALTER SEQUENCE nom.db_version_id_seq OWNER TO postgres;
ALTER SEQUENCE nom.db_version_id_seq OWNED BY nom.db_version.id;
INSERT INTO nom.db_version (id, description, version, updated, success, message) VALUES (1, 'Create db_version table for all existent DB schemas', '1.00', 1633536797197, true, NULL);
SELECT pg_catalog.setval('nom.db_version_id_seq', 1, true);
GRANT SELECT,INSERT,REFERENCES,DELETE,TRUNCATE,UPDATE ON TABLE nom.db_version TO ets_nom;
GRANT ALL ON SEQUENCE nom.db_version_id_seq TO ets_nom;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+104
View File
@@ -0,0 +1,104 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Updates for PvSan Reports
-- PROJECT: Guez
-- DATE: 2022-05-03
-- VERSION: 2.11
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- UPDATE rep_treatment_timeline_data SET event_type_id = 4 WHERE event_type_id = 7;
-- UPDATE rep_treatment_timeline_data SET event_type_id = 5 WHERE event_type_id = 9;
-- UPDATE rep_treatment_timeline_data SET event_type_id = 7 WHERE event_type_id = 12;
-- UPDATE rep_treatment_timeline_data SET event_type_id = 9 WHERE event_type_id = 11;
-- UPDATE rep_treatment_timeline_data SET event_type_id = 10 WHERE event_type_id = 9 AND vulnerability_state = 0 AND vitality = 100;
-- UPDATE rep_treatment_timeline_result SET event_type_id = 4 WHERE event_type_id = 7;
-- UPDATE rep_treatment_timeline_result SET event_type_id = 5 WHERE event_type_id = 9;
-- UPDATE rep_treatment_timeline_result SET event_type_id = 7 WHERE event_type_id = 12;
-- UPDATE rep_treatment_timeline_result SET event_type_id = 9 WHERE event_type_id = 11;
-- UPDATE rep_treatment_timeline_result SET event_type_id = 10 WHERE event_type_id = 9 AND vulnerability_state = 0 AND vitality = 100;
CREATE TABLE IF NOT EXISTS rep_event_type (
id integer DEFAULT nextval(( 'rep_event_type_id_seq'::text)::regclass),
name text
);
INSERT INTO rep_event_type (id, name) VALUES (1, 'VBGChanged') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;
INSERT INTO rep_event_type (id, name) VALUES (2, 'VitalityChanged') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;;
INSERT INTO rep_event_type (id, name) VALUES (3, 'NineLinerSet') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;;
INSERT INTO rep_event_type (id, name) VALUES (4, 'TransportRequested') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;;
INSERT INTO rep_event_type (id, name) VALUES (5, 'TransportInitiated') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;;
INSERT INTO rep_event_type (id, name) VALUES (6, 'Treatment') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;;
INSERT INTO rep_event_type (id, name) VALUES (7, 'VBGSet') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;;
INSERT INTO rep_event_type (id, name) VALUES (8, 'EnterFunctionalArea') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;;
INSERT INTO rep_event_type (id, name) VALUES (9, 'SetInjury') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;;
INSERT INTO rep_event_type (id, name) VALUES (10, 'VitalityReset') ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name;;
-- remove old stuff
DELETE FROM rep_event_type WHERE id > 10;
ALTER TABLE IF EXISTS rep_sanitation_material_data ADD COLUMN IF NOT EXISTS participant_type_id INTEGER;
ALTER TABLE IF EXISTS rep_sanitation_material_data DROP CONSTRAINT IF EXISTS FK_rep_sanitation_material_data_participant_type_id_ppm_type_id CASCADE;
ALTER TABLE IF EXISTS rep_sanitation_material_data ADD CONSTRAINT FK_rep_sanitation_material_data_participant_type_id_ppm_type_id FOREIGN KEY (participant_type_id) REFERENCES ppm.ppm_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE IF EXISTS rep_sanitation_material_result ADD COLUMN IF NOT EXISTS duration INTEGER;
ALTER TABLE IF EXISTS rep_treatment_data ADD COLUMN IF NOT EXISTS vulnerability_state INTEGER;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS vulnerability_state INTEGER;
ALTER TABLE IF EXISTS rep_treatment_timeline_data ADD COLUMN IF NOT EXISTS vulnerability_state INTEGER;
ALTER TABLE IF EXISTS rep_treatment_timeline_result ADD COLUMN IF NOT EXISTS vulnerability_state INTEGER;
ALTER TABLE IF EXISTS rep_treatment_data ADD COLUMN IF NOT EXISTS sanitation_evaluation INTEGER;
ALTER TABLE IF EXISTS rep_treatment_result ADD COLUMN IF NOT EXISTS sanitation_evaluation INTEGER;
ALTER TABLE IF EXISTS rec_participant_sanitation ADD COLUMN IF NOT EXISTS sanitation_evaluation INTEGER default 0;
-- produce some test data
-- UPDATE rep_sanitation_material_data SET participant_type_id = 55;
-- UPDATE rep_treatment_data SET vulnerability_state = 1 WHERE priority = 3;
-- UPDATE rep_treatment_data SET vulnerability_state = 2 WHERE priority = 2;
-- UPDATE rep_treatment_data SET vulnerability_state = 3 WHERE priority = 1;
-- UPDATE rep_treatment_timeline_data SET vulnerability_state = 1;
-- UPDATE rep_treatment_data SET sanitation_evaluation = 0 WHERE sanitation_result > 2;
-- UPDATE rep_treatment_data SET sanitation_evaluation = 2 WHERE sanitation_result <= 2;
-- UPDATE rep_treatment_result SET sanitation_evaluation = 0 WHERE sanitation_result > 2;
-- UPDATE rep_treatment_result SET sanitation_evaluation = 2 WHERE sanitation_result <= 2;
-- change enum PPM::SanitationResult
-- <enumeration name="SanitationResult">
-- <attribute key="deprecatedNA" value="-1"/>
-- <attribute key="NoEffect" value="0"/>
-- <attribute key="Unhandled" value="1"/>
-- <attribute key="Insufficient" value="2"/>
-- <attribute key="Sufficient" value="3"/>
-- <attribute key="Optimal" value="4"/>
--</enumeration>
-- OLD NEW
-- Unhandled -1 1
-- Irrelevant/NoEffect 0 0
-- Wrong/Insufficient 1 2
-- Needed/Sufficient 2 3
-- Optimal 3 4
-- in this order!
-- UPDATE rep_treatment_data SET sanitation_result = 4 WHERE sanitation_result = 3;
-- UPDATE rep_treatment_data SET sanitation_result = 3 WHERE sanitation_result = 2;
-- UPDATE rep_treatment_data SET sanitation_result = 2 WHERE sanitation_result = 1;
-- UPDATE rep_treatment_data SET sanitation_result = 1 WHERE sanitation_result = -1;
-- not really needed, this will be overwritten by generator, but to keep data in sync
-- UPDATE rep_treatment_result SET sanitation_result = 4 WHERE sanitation_result = 3;
-- UPDATE rep_treatment_result SET sanitation_result = 3 WHERE sanitation_result = 2;
-- UPDATE rep_treatment_result SET sanitation_result = 2 WHERE sanitation_result = 1;
-- UPDATE rep_treatment_result SET sanitation_result = 1 WHERE sanitation_result = -1;
COMMIT;
@@ -0,0 +1,95 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
----------------------------------------------------------------------------------
-- INFO: [E01562-59] New Tables nom_notification/nom_address
-- PROJECT: ADLER
-- DATE: 2025-06-27
-- VERSION: 2.120
----------------------------------------------------------------------------------
-- GLOBAL: NOM;
BEGIN;
ALTER TABLE IF EXISTS address_type DROP CONSTRAINT IF EXISTS PK_address_type_id CASCADE;
ALTER TABLE IF EXISTS nom_address DROP CONSTRAINT IF EXISTS PK_nom_address_id CASCADE;
ALTER TABLE IF EXISTS nom_address DROP CONSTRAINT IF EXISTS FK_nom_address_notification_id_nom_notification_id CASCADE;
ALTER TABLE IF EXISTS nom_address DROP CONSTRAINT IF EXISTS FK_nom_address_address_type_id_address_type_id CASCADE;
ALTER TABLE IF EXISTS nom_notification DROP CONSTRAINT IF EXISTS PK_nom_notification_id CASCADE;
ALTER TABLE IF EXISTS nom_notification DROP CONSTRAINT IF EXISTS FK_nom_notification_priority_id_priority_id CASCADE;
ALTER TABLE IF EXISTS nom_notification DROP CONSTRAINT IF EXISTS FK_nom_notification_processed_priority_priority_id CASCADE;
ALTER TABLE IF EXISTS priority DROP CONSTRAINT IF EXISTS PK_priority_id CASCADE;
DROP TABLE IF EXISTS address_type CASCADE;
DROP TABLE IF EXISTS nom_address CASCADE;
DROP TABLE IF EXISTS nom_notification CASCADE;
DROP TABLE IF EXISTS priority CASCADE;
-- Create tables
CREATE TABLE IF NOT EXISTS address_type (
id integer DEFAULT nextval(( 'nom.address_type_id_seq'::text)::regclass),
name text
);
CREATE TABLE IF NOT EXISTS nom_address (
id integer DEFAULT nextval(( 'nom.nom_address_id_seq'::text)::regclass),
address_type_id integer,
address_id integer,
name text,
address_sub_id integer,
address_sub_sub_id integer,
is_read boolean,
notification_id integer,
is_sender boolean
);
CREATE TABLE IF NOT EXISTS nom_notification (
id integer DEFAULT nextval(( 'nom.nom_notification_id_seq'::text)::regclass),
content text,
exercise_id integer,
expiry_time bigint,
priority_id integer,
processed integer,
processed_priority integer,
process_time bigint,
time_stamp bigint,
title text
);
CREATE TABLE IF NOT EXISTS priority (
id integer DEFAULT nextval(( 'nom.priority_id_seq'::text)::regclass),
name text
);
CREATE SEQUENCE IF NOT EXISTS address_type_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS nom_address_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS nom_notification_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS priority_id_seq INCREMENT 1 START 1 MINVALUE 1;
-- Create primary keys
ALTER TABLE IF EXISTS address_type ADD CONSTRAINT PK_address_type_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS nom_address ADD CONSTRAINT PK_nom_address_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS nom_notification ADD CONSTRAINT PK_nom_notification_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS priority ADD CONSTRAINT PK_priority_id PRIMARY KEY (id);
-- Create foreign keys
ALTER TABLE nom_address ADD CONSTRAINT FK_nom_address_notification_id_nom_notification_id FOREIGN KEY (notification_id) REFERENCES nom_notification (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE nom_address ADD CONSTRAINT FK_nom_address_address_type_id_address_type_id FOREIGN KEY (address_type_id) REFERENCES address_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE nom_notification ADD CONSTRAINT FK_nom_notification_priority_id_priority_id FOREIGN KEY (priority_id) REFERENCES priority (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE nom_notification ADD CONSTRAINT FK_nom_notification_processed_priority_priority_id FOREIGN KEY (processed_priority) REFERENCES priority (id) ON DELETE CASCADE ON UPDATE CASCADE;
-- Inserts for static data i.e. enums
INSERT INTO priority (id, name) VALUES (1, 'Highest');
INSERT INTO priority (id, name) VALUES (2, 'High');
INSERT INTO priority (id, name) VALUES (3, 'Normal');
INSERT INTO priority (id, name) VALUES (4, 'Low');
INSERT INTO address_type (id, name) VALUES (0, 'Service');
INSERT INTO address_type (id, name) VALUES (1, 'Operator');
INSERT INTO address_type (id, name) VALUES (2, 'Workstation');
INSERT INTO address_type (id, name) VALUES (3, 'Participant');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+26
View File
@@ -0,0 +1,26 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Properties column for table ppm_party
-- PROJECT: Guez
-- DATE: 2025-07-02
-- VERSION: 2.121
-------------------------------------------------------------------------
-- GLOBAL: PPM;
BEGIN;
ALTER TABLE ppm_party DROP IF EXISTS properties;
ALTER TABLE IF EXISTS ppm_party ADD COLUMN IF NOT EXISTS properties jsonb;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE ppm_party DROP IF EXISTS properties;
ALTER TABLE IF EXISTS ppm_party ADD COLUMN IF NOT EXISTS properties jsonb;
COMMIT;
@@ -0,0 +1,40 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: ETBUAS-X ChargeType für Drohnen
-- PROJECT: ETB-UAS
-- DATE: 2025-04-02
-- VERSION: 2.122
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DELETE from pdm_charge_type where id >=494 and id <=499;
DELETE FROM pdm_gear_type where id = 1801;
DELETE FROM pdm_gear_type_charge_type where gear_type_id = 1801;
INSERT INTO pdm_charge_type (id, predefined_name, name, short_name, properties, dis_entity, charge_legacy_id) VALUES (494, NULL, 'UAS IED 1', 'UAS IED 1', '{"isUasDroppable":true, "hazardDistance": 100, "casEffects" : [{ "severityType" : 1, "iedClass" : 1, "impactRadius": 5}]}', '2.255.26', NULL);
INSERT INTO pdm_charge_type (id, predefined_name, name, short_name, properties, dis_entity, charge_legacy_id) VALUES (495, NULL, 'UAS IED 2', 'UAS IED 2', '{"isUasDroppable":true, "hazardDistance": 100, "casEffects" : [{ "severityType" : 1, "iedClass" : 2, "impactRadius": 10}]}', '2.255.26', NULL);
INSERT INTO pdm_charge_type (id, predefined_name, name, short_name, properties, dis_entity, charge_legacy_id) VALUES (496, NULL, 'UAS IED 3', 'UAS IED 3', '{"isUasDroppable":true, "hazardDistance": 100, "casEffects" : [{ "severityType" : 1, "iedClass" : 3, "impactRadius": 20}]}', '2.255.26', NULL);
INSERT INTO pdm_charge_type (id, predefined_name, name, short_name, properties, dis_entity, charge_legacy_id) VALUES (497, NULL, 'UAS IED 4', 'UAS IED 4', '{"isUasDroppable":true, "hazardDistance": 100, "casEffects" : [{ "severityType" : 1, "iedClass" : 4, "impactRadius": 40}]}', '2.255.26', NULL);
INSERT INTO pdm_charge_type (id, predefined_name, name, short_name, properties, dis_entity, charge_legacy_id) VALUES (498, NULL, 'UAS IED 5', 'UAS IED 5', '{"isUasDroppable":true, "hazardDistance": 100, "casEffects" : [{ "severityType" : 1, "iedClass" : 5, "impactRadius": 60}]}', '2.255.26', NULL);
INSERT INTO pdm_charge_type (id, predefined_name, name, short_name, properties, dis_entity, charge_legacy_id) VALUES (499, NULL, 'UAS Lethal', 'UAS IED Lethal', '{"isUasDroppable":true, "hazardDistance": 100, "casEffects" : [{ "severityType" : 1, "iedClass" : 255, "impactRadius": 80}]}', '2.255.26', NULL);
INSERT INTO pdm_gear_type (id, name, gear_class_id) VALUES (1801,'UAS', 17 );
INSERT INTO pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1801, 494, NULL);
INSERT INTO pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1801, 495, NULL);
INSERT INTO pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1801, 496, NULL);
INSERT INTO pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1801, 497, NULL);
INSERT INTO pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1801, 498, NULL);
INSERT INTO pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1801, 499, NULL);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,30 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
----------------------------------------------------------------------------------
-- INFO: [ETBUAS-77] New charge type / gear type
-- PROJECT: SWP
-- DATE: 2025-08-01
-- VERSION: 2.123
----------------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DELETE FROM pdm.pdm_charge_type WHERE id = 47;
DELETE FROM pdm.pdm_gear_type WHERE id = 1109;
INSERT INTO pdm.pdm_gear_type (id, tas_code, name, gear_class_id, properties) VALUES (1109, 109, 'RF Jammer 15m', 10, NULL);
INSERT INTO pdm.pdm_charge_type (id, predefined_name, name, short_name, properties, dis_entity, charge_legacy_id) VALUES (47, NULL, 'RF Jamming', 'RF Jamming',
'{"isJamming" : true }', '2.255.47', NULL);
INSERT INTO pdm.pdm_gear_type_charge_type (gear_type_id, charge_type_id, max_range) VALUES (1109, 47, 15);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+121
View File
@@ -0,0 +1,121 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
----------------------------------------------------------------------------------
-- INFO: [ETBUAS-77] New Tables ppm_mission_*
-- PROJECT: SWP
-- DATE: 2025-08-04
-- VERSION: 2.124
----------------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- drop
DROP SEQUENCE IF EXISTS ppm_mission_action_id_seq;
DROP SEQUENCE IF EXISTS ppm_mission_item_id_seq;
DROP SEQUENCE IF EXISTS ppm_mission_plan_id_seq;
DROP SEQUENCE IF EXISTS rec_mission_plan_rec_id_seq;
DROP TABLE IF EXISTS ppm_mission_action CASCADE;
DROP TABLE IF EXISTS ppm_mission_action_type CASCADE;
DROP TABLE IF EXISTS ppm_mission_item CASCADE;
DROP TABLE IF EXISTS ppm_mission_plan CASCADE;
DROP TABLE IF EXISTS rec_mission_plan CASCADE;
-- create tables
CREATE TABLE IF NOT EXISTS ppm_mission_action (
id integer DEFAULT nextval(( 'ppm_mission_action_id_seq'::text)::regclass),
element_number integer, -- Sorting of items that belong to the same MissionItem
name text,
duration integer,
mission_action_type_id integer,
properties jsonb,
mission_item_id integer,
fulfilled bigint -- Timestamp when the action was fulfilled
);
COMMENT ON COLUMN ppm_mission_action.element_number IS 'Sorting of items that belong to the same MissionItem';
COMMENT ON COLUMN ppm_mission_action.fulfilled IS 'Timestamp when the action was fulfilled';
CREATE TABLE IF NOT EXISTS ppm_mission_action_type (
id integer,
name text
);
CREATE TABLE IF NOT EXISTS ppm_mission_item (
id integer DEFAULT nextval(( 'ppm_mission_item_id_seq'::text)::regclass),
element_number integer, -- Sorting of items within a mission plan
name text,
location_x double precision,
location_y double precision,
location_z double precision,
time_offset integer,
mission_plan_id integer
);
COMMENT ON COLUMN ppm_mission_item.element_number IS 'Sorting of items within a mission plan';
COMMENT ON COLUMN ppm_mission_item.element_number IS 'Sorting of items within a mission plan';
CREATE TABLE IF NOT EXISTS ppm_mission_plan (
id integer DEFAULT nextval(( 'ppm_mission_plan_id_seq'::text)::regclass),
name text,
mission_start bigint,
participant_id integer,
jump_to_start boolean,
repeat boolean,
aborted boolean
);
CREATE TABLE IF NOT EXISTS rec_mission_plan (
fulfilled bigint,
id integer,
items jsonb,
items_fulfilled integer,
jump_to_start boolean,
mission_start bigint,
name text,
participant_id integer,
properties text,
repeat boolean,
aborted boolean,
sample_time bigint,
rec_id bigint DEFAULT nextval(( 'rec_mission_plan_rec_id_seq'::text)::regclass),
dds_is_alive boolean DEFAULT true,
insert_time bigint DEFAULT (extract(epoch from now()) * 1000)
);
COMMENT ON TABLE rec_mission_plan IS 'recorded data for topic MissionPlan';
-- create sequences
CREATE SEQUENCE IF NOT EXISTS ppm_mission_action_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS ppm_mission_item_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS ppm_mission_plan_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS rec_mission_plan_rec_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS ppm_mission_action ADD CONSTRAINT PK_ppm_mission_action_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS ppm_mission_action_type ADD CONSTRAINT PK_ppm_mission_action_type_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS ppm_mission_item ADD CONSTRAINT PK_ppm_mission_item_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS ppm_mission_plan ADD CONSTRAINT PK_ppm_mission_plan_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS rec_mission_plan ADD CONSTRAINT PK_rec_mission_plan_rec_id PRIMARY KEY (rec_id);
ALTER TABLE ppm_mission_action ADD CONSTRAINT FK_ppm_mission_action_mission_action_type_id_ppm_mission_action
FOREIGN KEY (mission_action_type_id) REFERENCES ppm_mission_action_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE ppm_mission_action ADD CONSTRAINT FK_ppm_mission_action_mission_item_id_ppm_mission_item_id
FOREIGN KEY (mission_item_id) REFERENCES ppm_mission_item (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE ppm_mission_item ADD CONSTRAINT FK_ppm_mission_item_mission_plan_id_ppm_mission_plan_id
FOREIGN KEY (mission_plan_id) REFERENCES ppm_mission_plan (id) ON DELETE CASCADE ON UPDATE CASCADE;
INSERT INTO ppm_mission_action_type (id, name) VALUES (0, 'Undefined');
INSERT INTO ppm_mission_action_type (id, name) VALUES (1, 'MoveTo');
INSERT INTO ppm_mission_action_type (id, name) VALUES (2, 'Loiter');
INSERT INTO ppm_mission_action_type (id, name) VALUES (3, 'Attack');
CREATE INDEX IDX_rec_mission_plan_sample_time ON rec_mission_plan (sample_time);
COMMIT;
@@ -0,0 +1,31 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
----------------------------------------------------------------------------------
-- INFO: [E01562-42] New building effect data for chargeType (Mrs/Art/Rakete)
-- PROJECT: ADLER
-- DATE: 2025-08-05
-- VERSION: 2.125
----------------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DELETE FROM pdm_building_charge_effect WHERE charge_type_id IN (394,376);
-- GMLRS Unitary --> 394
INSERT INTO pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro)
VALUES (84, 394, 300, 1000, 4, true, true);
-- Präzisionsmunition Laser --> 376
INSERT INTO pdm_building_charge_effect (id, charge_type_id, destructive_factor, penetration_factor, hit_sound, difcue_light, difcue_pyro)
VALUES (85, 376, 0, 0, 3, true, true);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,149 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
----------------------------------------------------------------------------------
-- INFO: [E01562-42] New tables for SAA
-- PROJECT: ADLER
-- DATE: 2025-08-05
-- VERSION: 2.126
----------------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
-- drop
DROP TABLE IF EXISTS pdm_saa_l21_target_subtype CASCADE;
DROP TABLE IF EXISTS pdm_saa_l22_target_type CASCADE;
DROP TABLE IF EXISTS pdm_saa_type_subtype CASCADE;
-- create
CREATE TABLE IF NOT EXISTS pdm_saa_l21_target_subtype (
id integer DEFAULT nextval(( 'pdm.pdm_saa_l21_target_subtype_id_seq'::text)::regclass),
name text,
description text,
version text
);
CREATE TABLE IF NOT EXISTS pdm_saa_l22_target_type (
id integer DEFAULT nextval(( 'pdm.pdm_saa_l22_target_type_id_seq'::text)::regclass),
name text,
description text,
version text
);
CREATE TABLE IF NOT EXISTS pdm_saa_type_subtype (
id integer DEFAULT nextval(( 'pdm.pdm_saa_type_subtype_id_seq'::text)::regclass),
saa_l22_target_type_id integer,
saa_l21_target_subtype_id integer
);
CREATE SEQUENCE IF NOT EXISTS pdm_saa_l21_target_subtype_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS pdm_saa_l22_target_type_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS pdm_saa_type_subtype_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS pdm_saa_l21_target_subtype ADD CONSTRAINT PK_pdm_saa_l21_target_subtype_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS pdm_saa_l22_target_type ADD CONSTRAINT PK_pdm_saa_l22_target_type_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS pdm_saa_type_subtype ADD CONSTRAINT PK_pdm_saa_type_subtype_id PRIMARY KEY (id);
ALTER TABLE pdm_saa_type_subtype ADD CONSTRAINT FK_pdm_saa_type_subtype_saa_l22_target_type_id_pdm_saa_l22_targ
FOREIGN KEY (saa_l22_target_type_id) REFERENCES pdm_saa_l22_target_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE pdm_saa_type_subtype ADD CONSTRAINT FK_pdm_saa_type_subtype_saa_l21_target_subtype_id_pdm_saa_l21_t
FOREIGN KEY (saa_l21_target_subtype_id) REFERENCES pdm_saa_l21_target_subtype (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE pdm_saa_l21_target_subtype ADD CONSTRAINT UQ_pdm_saa_l21_target_subtype_name UNIQUE (name);
ALTER TABLE pdm_saa_l22_target_type ADD CONSTRAINT UQ_pdm_saa_l22_target_type_name UNIQUE (name);
ALTER TABLE pdm_saa_type_subtype ADD CONSTRAINT UQ_pdm_saa_type_subtype_id UNIQUE (id);
-- inserts pdm_saa_l21_target_subtype
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (1, 'Flugzeug');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (2, 'MTW');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (3, 'AntiPersonen');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (4, 'PanzerabwehrLenkflugkoerper');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (5, 'Panzerfaust');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (6, 'Bataillon');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (7, 'Boot');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (8, 'Verpflegung');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (9, 'PersAusruestung');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (10, 'Betriebsstoff');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (11, 'Baumaterial');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (12, 'Munition');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (13, 'Beton');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (14, 'Einschnitt');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (15, 'Division');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (16, 'EloKa');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (17, 'Faehre');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (18, 'Steg');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (19, 'BeweglicheBefehlsstelle');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (20, 'Fuehrung');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (21, 'Hubschrauber');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (22, 'Huegel');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (23, 'Schwer');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (24, 'SchweresMG');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (25, 'SchwereRakete');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (26, 'SchwerRad');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (27, 'Infanterie');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (28, 'Kreuzung');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (29, 'Landebahn');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (30, 'Lautsprecher');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (31, 'Leicht');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (32, 'Maschinengewehr');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (33, 'LeichteRakete');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (34, 'LeichtRad');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (35, 'Mauerwerk');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (36, 'Mittel');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (37, 'MittlereRakete');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (38, 'Stahlbeton');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (39, 'Rakete');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (40, 'Beobachtungsstelle');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (41, 'Stellung');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (42, 'Patrouille');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (43, 'Radar');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (44, 'Floss');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (45, 'RueckstossfreiesGeschuetz');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (46, 'Aufklaerung');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (47, 'Regiment');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (48, 'Strasse');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (49, 'Eisenbahn');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (50, 'Uebersetzstelle');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (51, 'Suchscheinwerfer');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (52, 'Klein');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (53, 'SonstigerVerwendungszweck');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (54, 'Stahl');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (55, 'Truppen');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (56, 'TruppenUndGepanzerteKraefte');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (57, 'MechanisierteKraefte');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (58, 'TruppenUndFahrzeuge');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (59, 'Unbekannt');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (60, 'FahrzeugPonton');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (61, 'SehrSchwerAbgesessen');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (62, 'Arbeitskommando');
INSERT INTO pdm_saa_l21_target_subtype (id, name) VALUES (63, 'Holz');
-- inserts pdm_saa_l22_target_type
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (1, 'Flugabwehr');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (2, 'PanzerGepanzert');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (3, 'Artillerie');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (4, 'VerfuegungsraumBereitschaftsraum');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (5, 'Gebaeude');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (6, 'Bruecke');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (7, 'Gefechtsstand');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (8, 'SystemAusruestung');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (9, 'Moerser');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (10, 'Personen');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (11, 'Rakete');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (12, 'Versorgungsgueter');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (13, 'Gelaendemerkmal');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (14, 'Fahrzeug');
INSERT INTO pdm_saa_l22_target_type (id, name) VALUES (15, 'Waffe');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,52 @@
-- $Id: 2.95_guez_pdm_charge_type_pzabwmiv.upd 61535 2024-01-25 08:18:08Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.95_guez_pdm_charge_type_pzabwmiv.upd $
-- $Author: rathje $
----------------------------------------------------------------------------------
-- INFO: [E01562-42] New ppm types for ADLER
-- PROJECT: ADLER
-- DATE: 2025-08-05
-- VERSION: 2.127
----------------------------------------------------------------------------------
-- GLOBAL: PPM;
BEGIN;
DELETE FROM ppm_type WHERE name = 'Feuereinheit (Haubitze Adler)';
DELETE FROM ppm_type WHERE name = 'Feuereinheit (Mörser Adler)';
DELETE FROM ppm_type WHERE name = 'Feuereinheit (Rakete Adler)';
DELETE FROM ppm_type WHERE name = 'Ladeplatz (Adler)';
DELETE FROM ppm_type WHERE name = 'Haubitze (Adler)';
DELETE FROM ppm_type WHERE name = 'Mörser (Adler)';
DELETE FROM ppm_type WHERE name = 'Rakete (Adler)';
INSERT INTO ppm_type ( type_class_id, equipment_type_id, name, symbol, radio_count, hierarchy_level, dis_entities, properties) VALUES
( 2, NULL, 'Feuereinheit (Haubitze Adler)', 'AP6D|CMPL|10011000001303010000' , 0, 0, '{}',
'{"isArtillery": true, "gearClassId": 7, "isMovable": false, "adlerType": "Pzh2000", "formation": {"geometry": "line", "angle": -1, "distance": -1, "distanceSets":
{"Locked": 25, "Unlocked": 50} }}'),
( 2, NULL, 'Feuereinheit (Mörser Adler)', 'AP6D|CMPL|10011000001308000000' , 0, 0, '{}',
'{"isArtillery": true, "gearClassId": 8, "isMovable": false, "adlerType": "RRohr", "formation": {"geometry": "line", "angle": -1, "distance": -1, "distanceSets":
{"Locked": 25, "Unlocked": 50} }}'),
( 2, NULL, 'Feuereinheit (Rakete Adler)', 'AP6D|CMPL|10011000001303000000' , 0, 0, '{}',
'{"isArtillery": true, "gearClassId": 20,"isMovable": false, "adlerType": "Mars", "formation": {"geometry": "line", "angle": -1, "distance": -1, "distanceSets":
{"Locked": 25, "Unlocked": 50} }}');
INSERT INTO ppm_type ( type_class_id, equipment_type_id, name, symbol, radio_count, hierarchy_level, dis_entities, properties) VALUES
( 7, NULL, 'Ladeplatz (Adler)', 'AP6D|CMPL|10011500001109020000' , 0, 0, '{}', '
{"isArtillery": true, "isMovable": false, "adlerType": "LP" } '),
( 7, NULL, 'Haubitze (Adler)', 'AP6D|CMPL|10011500001109020000' , 0, 0, '{}', '
{"isArtillery": true, "gearClassId": 7, "isMovable": false, "adlerType": "Pzh2000" } '),
( 7, NULL, 'Mörser (Adler)', 'AP6D|CMPL|10011500001114020000' , 0, 0, '{}', '
{"isArtillery": true, "gearClassId": 8, "isMovable": false, "adlerType": "RRohr" } '),
( 7, NULL, 'Rakete (Adler)', 'AP6D|CMPL|10011500001116020000' , 0, 0, '{}', '
{"isArtillery": true, "gearClassId": 20, "isMovable": false, "adlerType": "Mars"} ');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,21 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Adding column is_using_effect_state_received to aes entity
-- PROJECT: Guez
-- DATE: 2022-09-01
-- VERSION: 2.128
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS aes_entity ADD COLUMN IF NOT EXISTS is_using_effect_state_received BOOLEAN DEFAULT false;
COMMIT;
+35
View File
@@ -0,0 +1,35 @@
-- $Id: 2.107_guez_pdm_event_type.upd 64183 2024-11-27 11:09:03Z rathje $
-- $HeadURL: svn://slssvn/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.107_guez_pdm_event_type.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: Insert new table pdm_oc_code
-- PROJECT: Guez
-- DATE: 2025-09-10
-- VERSION: 2.129
------------------1------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DROP SEQUENCE IF EXISTS pdm_oc_code_id_seq;
DROP TABLE IF EXISTS pdm_oc_code CASCADE;
CREATE TABLE IF NOT EXISTS pdm_oc_code (
id integer DEFAULT nextval(( 'pdm.pdm_oc_code_id_seq'::text)::regclass),
name text
);
CREATE SEQUENCE IF NOT EXISTS pdm_oc_code_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS pdm_oc_code ADD CONSTRAINT PK_pdm_oc_code_id PRIMARY KEY (id);
INSERT INTO pdm_oc_code (id, name) VALUES (8, 'WoundingPaused');
INSERT INTO pdm_oc_code (id, name) VALUES (35, 'WoundingContinue');
INSERT INTO pdm_oc_code (id, name) VALUES (65, 'OptimalTreatment');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,32 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Updates for opm san nineliner operator rights
-- PROJECT: Guez
-- DATE: 2022-05-05
-- VERSION: 2.12
-------------------------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
--- SanNineLiner rights - 0xa020000 = 167903232
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (167903232, 'SanNineLiner', 'SanNineLiner operator rights', 4, false);
--- Base: 167903232, SanNineLinerEdit - 167903233 = 0xa020001
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (167903233, 'SanNineLinerEdit', 'Edit SanNineLiner');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (167772163, 'SanNineLinerEdit', 'Edit SanNineLiner', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (167772163, 167903233); -- group_id is: 167772163 = 0xa000003
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (167903232, 167772163); -- SanNineLiner
--- Base: 167903232, SanNineLinerShow - 167903234 = 0xa020002
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (167903234, 'SanNineLinerShow', 'Show SanNineLiner');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (167772164, 'SanNineLinerShow', 'Show SanNineLiner', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (167772164, 167903234); -- group_id is: 167772164 = 0xa000004
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (167903232, 167772164); -- SanNineLiner
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,36 @@
-- $Id: 2.83_guez_pdm_charge_type.upd 62503 2024-04-19 08:32:50Z rathje $
-- $HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.83_guez_pdm_charge_type.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: New operator right for Notifications
-- PROJECT: Guez
-- DATE: 2025-09-16
-- VERSION: 2.130
------------------1------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
DELETE FROM opm_group WHERE id IN ( 34865152, 33554473, 33554474 );
DELETE FROM opm_access_control_level WHERE id IN (34865153, 34865154);
--- Notification - 0x2140000 = 34865152
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (34865152, 'Notification', 'Edit Notification', 4, false);
--- Base: 34865152, NotificationShow - 34865153 = 0x2140001
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (34865153, 'NotificationShow', 'Show Notification');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (33554473, 'NotificationShow', 'Show Notification', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (33554473, 34865153); -- group_id is: 33554473 = 0x2000029
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (34865152, 33554473); -- Notification
--- Base: 34865152, NotificationEdit - 34865154 = 0x2140002
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (34865154, 'NotificationEdit', 'Edit Notification');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (33554474, 'NotificationEdit', 'Edit Notification', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (33554474, 34865154); -- group_id is: 33554474 = 0x200002a
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (34865152, 33554474); -- Notification
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,37 @@
-- $Id: 2.83_guez_pdm_charge_type.upd 62503 2024-04-19 08:32:50Z rathje $
-- $HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.83_guez_pdm_charge_type.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: New operator right for ChargeEffect
-- PROJECT: Guez
-- DATE: 2025-10-02
-- VERSION: 2.132
------------------1------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
DELETE FROM opm_group WHERE id IN ( 34537472, 33554442, 33554443);
DELETE FROM opm_access_control_level WHERE id IN (34537473, 34537474);
--- Charge Effect - 0x20f0000 = 34537472
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (34537472, 'Charge Effect', 'Edit ChargeEffect entries', 4, false);
--- Base: 34537472, ChargeEffectShow - 34537473 = 0x20f0001
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (34537473, 'ChargeEffectShow', 'Show ChargeEffect entries');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (33554442, 'ChargeEffectShow', 'Show ChargeEffect entries', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (33554442, 34537473); -- group_id is: 33554442 = 0x200000a
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (34537472, 33554442); -- Charge Effect
--- Base: 34537472, ChargeEffectEdit - 34537474 = 0x20f0002
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (34537474, 'ChargeEffectEdit', 'Edit ChargeEffect entries');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (33554443, 'ChargeEffectEdit', 'Edit ChargeEffect entries', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (33554443, 34537474); -- group_id is: 33554443 = 0x200000b
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (34537472, 33554443); -- Charge Effect
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
+456
View File
@@ -0,0 +1,456 @@
-------------------------------------------------------------------------
-- INFO: Update PDM Charge Types (for 3DWS Mines)
-- PROJECT: Guez
-- DATE: 2025-10-02
-- VERSION: 2.133
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
-- Update pdm_charge_type
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.0' WHERE id = 1;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.1' WHERE id = 2;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.2' WHERE id = 3;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.3' WHERE id = 4;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.2.10.1.0' WHERE id = 5;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.2.9.6.0' WHERE id = 6;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.23.1.0' WHERE id = 7;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.7.2.6' WHERE id = 8;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.206.2.1.8.0' WHERE id = 9;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.2.3.5.0' WHERE id = 10;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.81.1.0' WHERE id = 11;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 12;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.2.1' WHERE id = 13;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.1.4' WHERE id = 14;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.1.0.0' WHERE id = 15;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.5.0' WHERE id = 16;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.2.1.0' WHERE id = 17;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.1.2.0' WHERE id = 18;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 19;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 20;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.2.3.5.2' WHERE id = 21;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.2.2.8.0' WHERE id = 22;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.222.2.2.5.0' WHERE id = 23;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.78.2.9.2.0' WHERE id = 24;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.21.3.0' WHERE id = 25;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.5.0' WHERE id = 26;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.2.0' WHERE id = 27;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.45.2.23.1.0' WHERE id = 28;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.0' WHERE id = 29;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.1.0' WHERE id = 30;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.0' WHERE id = 31;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.206.2.1.1.0' WHERE id = 32;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.206.2.1.1.1' WHERE id = 33;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.1.5' WHERE id = 34;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.2.2' WHERE id = 35;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.1.0' WHERE id = 36;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.222.2.1.1.0' WHERE id = 37;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.2.3' WHERE id = 38;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.78.2.9.2.1' WHERE id = 39;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.2.1.1' WHERE id = 40;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.205.2.1.1.0' WHERE id = 41;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.4' WHERE id = 42;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.1' WHERE id = 43;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.2.1.2' WHERE id = 44;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.7.0' WHERE id = 45;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.6' WHERE id = 48;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.7' WHERE id = 49;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.85.0.14' WHERE id = 50;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.81.0.0' WHERE id = 51;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.11' WHERE id = 52;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.0.0' WHERE id = 53;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.0.0' WHERE id = 54;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 55;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.1.0.0' WHERE id = 56;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.1.0.1' WHERE id = 57;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.0' WHERE id = 58;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.1' WHERE id = 59;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.3.8.0.0' WHERE id = 60;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.3.8.0.1' WHERE id = 61;
UPDATE pdm.pdm_charge_type SET dis_entity = '1.1.78.0.0.1' WHERE id = 62;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.20' WHERE id = 63;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.0' WHERE id = 64;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.100' WHERE id = 65;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.85.0.1' WHERE id = 66;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 67;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.8' WHERE id = 68;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.9' WHERE id = 69;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.10' WHERE id = 70;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.1' WHERE id = 71;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.1' WHERE id = 72;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.0.1' WHERE id = 73;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.0.2' WHERE id = 74;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.78.2.4.0.0' WHERE id = 75;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.222.2.3.0.0' WHERE id = 76;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.4.0.0' WHERE id = 77;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.2' WHERE id = 78;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.0.3' WHERE id = 79;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.3.1.1.0' WHERE id = 214;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.3.3.0.0' WHERE id = 215;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.3.3.0.0' WHERE id = 216;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.6.3.1.0' WHERE id = 321;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.6.3.3.1' WHERE id = 341;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.6.3.3.0' WHERE id = 342;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.6.3.3.0' WHERE id = 343;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.222.2.19.1.0' WHERE id = 371;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.222.2.19.10.0' WHERE id = 373;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.8.18.0' WHERE id = 381;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.2' WHERE id = 432;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.3' WHERE id = 433;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.4' WHERE id = 434;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.5' WHERE id = 435;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.6' WHERE id = 436;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.7' WHERE id = 437;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.8' WHERE id = 438;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.9' WHERE id = 439;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.10' WHERE id = 440;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.254.17.11' WHERE id = 441;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.73.0.0' WHERE id = 442;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.74.0.0' WHERE id = 443;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.75.0.0' WHERE id = 444;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.81.0.0' WHERE id = 2001;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.81.0.1' WHERE id = 2002;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.2' WHERE id = 2003;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.3' WHERE id = 2004;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.81.0.1' WHERE id = 2005;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.81.0.2' WHERE id = 2006;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.81.0.3' WHERE id = 2007;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.81.0.4' WHERE id = 2008;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.4' WHERE id = 2009;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.5' WHERE id = 2010;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.3' WHERE id = 2011;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.2' WHERE id = 2012;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.3' WHERE id = 2013;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.4' WHERE id = 2014;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.4' WHERE id = 2015;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.5' WHERE id = 2016;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.6' WHERE id = 2017;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.7' WHERE id = 2018;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.5' WHERE id = 2019;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.6' WHERE id = 2020;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.7' WHERE id = 2021;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.23.0' WHERE id = 2022;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.23.1' WHERE id = 2023;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.14.0.0' WHERE id = 2024;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.14.0.1' WHERE id = 2025;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.2.3.5.2' WHERE id = 2026;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.2.3.5.3' WHERE id = 2027;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.2.3.5.4' WHERE id = 2028;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.2.3.5.5' WHERE id = 2029;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.23.2' WHERE id = 2030;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.23.3' WHERE id = 2031;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.23.4' WHERE id = 2032;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.23.5' WHERE id = 2033;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.0' WHERE id = 2034;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.1' WHERE id = 2035;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.2' WHERE id = 2036;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.3' WHERE id = 2037;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.4' WHERE id = 2038;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.5' WHERE id = 2039;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.6' WHERE id = 2040;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.7' WHERE id = 2041;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.8' WHERE id = 2042;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.9' WHERE id = 2043;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.10' WHERE id = 2044;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.11' WHERE id = 2045;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.12' WHERE id = 2046;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.13' WHERE id = 2047;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.14' WHERE id = 2048;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.15' WHERE id = 2049;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.84.0.0' WHERE id = 2050;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.84.0.1' WHERE id = 2051;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.84.0.2' WHERE id = 2052;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.84.0.3' WHERE id = 2053;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.84.0.4' WHERE id = 2054;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.39.0.0' WHERE id = 2055;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.39.0.1' WHERE id = 2056;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.1' WHERE id = 2057;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.2' WHERE id = 2058;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.3' WHERE id = 2059;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.4' WHERE id = 2060;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.5' WHERE id = 2061;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.6' WHERE id = 2062;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.7' WHERE id = 2063;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.8' WHERE id = 2064;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.7.0.0' WHERE id = 2065;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.7.0.1' WHERE id = 2066;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.7.0.2' WHERE id = 2067;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.7.0.3' WHERE id = 2068;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.7.0.4' WHERE id = 2069;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.7.0.5' WHERE id = 2070;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.78.2.9.0.0' WHERE id = 2071;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.78.2.9.0.1' WHERE id = 2072;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.5.0.0' WHERE id = 2073;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.5.0.1' WHERE id = 2074;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.5.0.2' WHERE id = 2075;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.9.0.0' WHERE id = 2076;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.9.0.1' WHERE id = 2077;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.9.0.2' WHERE id = 2078;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.9.0.3' WHERE id = 2079;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.0' WHERE id = 2080;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.1' WHERE id = 2081;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.2' WHERE id = 2082;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.3' WHERE id = 2083;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.4' WHERE id = 2084;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.5' WHERE id = 2085;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.6' WHERE id = 2086;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.7' WHERE id = 2087;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.8' WHERE id = 2088;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.9' WHERE id = 2089;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.11.0.0' WHERE id = 2090;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.11.0.1' WHERE id = 2091;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.11.0.2' WHERE id = 2092;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.5' WHERE id = 2093;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.6' WHERE id = 2094;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.7' WHERE id = 2095;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.8' WHERE id = 2096;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.9' WHERE id = 2097;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.10' WHERE id = 2098;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.11' WHERE id = 2099;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.12' WHERE id = 2100;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.11.0.0' WHERE id = 2101;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.11.0.1' WHERE id = 2102;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.11.0.2' WHERE id = 2103;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.2.11.0.3' WHERE id = 2104;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.9.0.4' WHERE id = 2105;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.9.0.5' WHERE id = 2106;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.10' WHERE id = 2107;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.11' WHERE id = 2108;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.12' WHERE id = 2109;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.14.0.0' WHERE id = 2110;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.14.0.1' WHERE id = 2111;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.6.0.0' WHERE id = 2112;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.222.1.11.0.0' WHERE id = 2113;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.10.0.0' WHERE id = 2114;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.11.0.0' WHERE id = 2115;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.13.0.0' WHERE id = 2116;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.14.0.0' WHERE id = 2117;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.14.0.1' WHERE id = 2118;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.14.0.2' WHERE id = 2119;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.16.0.0' WHERE id = 2120;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.16.0.1' WHERE id = 2121;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.26.0.0' WHERE id = 2122;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.45.0.0' WHERE id = 2123;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.4.0.0' WHERE id = 2124;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.3.0.0' WHERE id = 2125;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.3.0.1' WHERE id = 2126;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.16.0.0' WHERE id = 2127;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.16.0.1' WHERE id = 2128;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.0.0' WHERE id = 2129;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.4.0' WHERE id = 2130;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.4.1' WHERE id = 2131;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.5.0' WHERE id = 2132;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.5.1' WHERE id = 2133;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2134;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.2.0.0' WHERE id = 2135;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.8.0.0' WHERE id = 2136;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.8.0.1' WHERE id = 2137;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.4.225.1.6.0.0' WHERE id = 2138;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.71.1.3.0.0' WHERE id = 2139;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.71.1.3.0.1' WHERE id = 2140;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.71.1.4.2.0' WHERE id = 2141;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.71.1.4.3.0' WHERE id = 2142;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.5.0.0' WHERE id = 2143;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.5.0.1' WHERE id = 2144;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.5.0.2' WHERE id = 2145;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.2.0.0' WHERE id = 2146;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.2.0.1' WHERE id = 2147;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.71.1.2.0.0' WHERE id = 2148;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.9.0.0' WHERE id = 2149;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.1.0' WHERE id = 2150;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.1.3' WHERE id = 2151;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.2.0' WHERE id = 2152;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.2.4' WHERE id = 2153;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.2.5' WHERE id = 2154;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.0.0' WHERE id = 2155;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.0.1' WHERE id = 2156;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.3.0' WHERE id = 2157;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.3.1' WHERE id = 2158;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.9' WHERE id = 2159;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.10' WHERE id = 2160;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.11' WHERE id = 2161;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.12' WHERE id = 2162;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.13' WHERE id = 2163;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.14' WHERE id = 2164;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.197.1.1.0.0' WHERE id = 2165;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.0.3.4.0.0' WHERE id = 2166;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.2.3.5.6' WHERE id = 2167;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.7.0.0' WHERE id = 2168;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.11.0.3' WHERE id = 2169;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.8' WHERE id = 2170;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.9' WHERE id = 2171;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.10' WHERE id = 2172;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.11' WHERE id = 2173;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.3.8.0.2' WHERE id = 2174;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.85.0.5' WHERE id = 2175;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.85.0.6' WHERE id = 2176;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.85.7.3' WHERE id = 2177;
UPDATE pdm.pdm_charge_type SET dis_entity = '9.1.225.5.9.0.0' WHERE id = 2178;
UPDATE pdm.pdm_charge_type SET dis_entity = '9.1.225.5.7.0' WHERE id = 2179;
UPDATE pdm.pdm_charge_type SET dis_entity = '9.1.225.5.60.0' WHERE id = 2180;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2181;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2182;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2183;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.1.0.1' WHERE id = 2184;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.1' WHERE id = 2185;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2186;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2187;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.1.5.0.0' WHERE id = 2188;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2189;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2190;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2191;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 2192;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.81.0.2' WHERE id = 4001;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.81.0.3' WHERE id = 4002;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.6' WHERE id = 4003;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.7' WHERE id = 4004;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.81.0.4' WHERE id = 4007;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.81.0.5' WHERE id = 4008;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.8' WHERE id = 4009;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.9' WHERE id = 4010;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.8' WHERE id = 4015;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.9' WHERE id = 4016;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.10' WHERE id = 4017;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.11' WHERE id = 4018;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.8' WHERE id = 4019;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.9' WHERE id = 4020;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.3.10' WHERE id = 4021;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.16' WHERE id = 4034;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.17' WHERE id = 4035;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.18' WHERE id = 4036;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.19' WHERE id = 4037;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.20' WHERE id = 4038;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.21' WHERE id = 4040;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.22' WHERE id = 4041;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.23' WHERE id = 4042;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.24' WHERE id = 4044;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.25' WHERE id = 4045;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.10.0' WHERE id = 6022;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.14.0.2' WHERE id = 6024;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.14.0.3' WHERE id = 6025;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.2.3.5.7' WHERE id = 6026;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.2.3.5.8' WHERE id = 6027;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.23.6' WHERE id = 6030;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.4.23.7' WHERE id = 6031;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.26' WHERE id = 6036;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.27' WHERE id = 6039;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.28' WHERE id = 6040;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.29' WHERE id = 6043;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.30' WHERE id = 6044;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.31' WHERE id = 6045;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.32' WHERE id = 6047;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.33' WHERE id = 6048;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.84.0.5' WHERE id = 6051;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.84.0.6' WHERE id = 6053;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.7.0.1' WHERE id = 6055;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.9' WHERE id = 6057;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.10' WHERE id = 6060;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.39.0.2' WHERE id = 6065;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.39.0.3' WHERE id = 6069;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.9.0.6' WHERE id = 6077;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.13' WHERE id = 6081;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.14' WHERE id = 6085;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.15' WHERE id = 6086;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.11.0.4' WHERE id = 6091;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.16' WHERE id = 6096;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.11.0.5' WHERE id = 6097;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.11.0.6' WHERE id = 6103;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.9.0.7' WHERE id = 6105;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.10.0.17' WHERE id = 6107;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.14.0.3' WHERE id = 6110;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.16.0.2' WHERE id = 6121;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.8' WHERE id = 6170;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.9' WHERE id = 6171;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.10' WHERE id = 6172;
UPDATE pdm.pdm_charge_type SET dis_entity = '5.1.0.5.30.11' WHERE id = 6173;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.85.0.7' WHERE id = 6175;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.85.0.8' WHERE id = 6176;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 6191;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.2.6.0.0' WHERE id = 8056;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.11' WHERE id = 8058;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.12' WHERE id = 8059;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.2.10.0.0' WHERE id = 8066;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.2.11.0.0' WHERE id = 8070;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.6.0.0' WHERE id = 8112;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.222.1.11.0.1' WHERE id = 8113;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.10.0.1' WHERE id = 8114;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.11.0.1' WHERE id = 8115;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.13.0.1' WHERE id = 8116;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.14.0.4' WHERE id = 8117;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.14.0.5' WHERE id = 8118;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.14.0.6' WHERE id = 8119;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.16.0.3' WHERE id = 8120;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.222.1.16.0.4' WHERE id = 8121;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.4.0.1' WHERE id = 8125;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.4.0.2' WHERE id = 8126;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.16.0.2' WHERE id = 8127;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.16.0.3' WHERE id = 8128;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.0.1' WHERE id = 8129;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.4.2' WHERE id = 8130;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.4.3' WHERE id = 8131;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.5.2' WHERE id = 8132;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.5.3' WHERE id = 8133;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 8134;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.2.0.1' WHERE id = 8135;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.8.0.2' WHERE id = 8136;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.8.0.3' WHERE id = 8137;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 8139;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 8140;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.71.1.4.2.1' WHERE id = 8141;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.71.1.4.3.1' WHERE id = 8142;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.5.0.3' WHERE id = 8143;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.5.0.4' WHERE id = 8144;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.5.0.5' WHERE id = 8145;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.2.0.2' WHERE id = 8146;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.2.0.3' WHERE id = 8147;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.71.1.2.0.1' WHERE id = 8148;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.9.0.1' WHERE id = 8149;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.1.4' WHERE id = 8150;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.1.5' WHERE id = 8151;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.2.6' WHERE id = 8152;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.2.7' WHERE id = 8153;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.2.8' WHERE id = 8154;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.0.2' WHERE id = 8156;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.3.2' WHERE id = 8157;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.1.1.3.3' WHERE id = 8158;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.15' WHERE id = 8159;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.16' WHERE id = 8160;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.17' WHERE id = 8161;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.18' WHERE id = 8162;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.19' WHERE id = 8163;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.20' WHERE id = 8164;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.8.0.4' WHERE id = 12136;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.8.0.5' WHERE id = 12137;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.1.225.1.15.0.0' WHERE id = 12138;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.1.5.0.6' WHERE id = 12145;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.21' WHERE id = 12160;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.22' WHERE id = 12161;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.105.1.3.0.23' WHERE id = 12163;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.2.0.10' WHERE id = 22010;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.12' WHERE id = 22017;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.13' WHERE id = 22059;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.9.225.2.11.0.7' WHERE id = 22097;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.225.1.1.0.2' WHERE id = 22129;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.1.0.1' WHERE id = 22184;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.5.1.1' WHERE id = 22185;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 22186;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE id = 22187;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.1.0.34' WHERE id = 23047;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.205.2.2.6.14' WHERE id = 23058;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.7.0.6' WHERE id = 23069;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.224.2.7.0.7' WHERE id = 23070;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.2.78.2.9.0.2' WHERE id = 23072;
UPDATE pdm.pdm_charge_type SET dis_entity = '2.8.225.2.16.0.13' WHERE id = 23100;
-- Set all empty entries to 2.0.0.0.0.0.1
UPDATE pdm.pdm_charge_type SET dis_entity = '2.0.0.0.0.0.1' WHERE dis_entity is null;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,46 @@
-- $Id: 2.83_guez_pdm_charge_type.upd 62503 2024-04-19 08:32:50Z rathje $
-- $HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.83_guez_pdm_charge_type.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: New operator right for ADLER Administration
-- PROJECT: Guez
-- DATE: 2025-10-15
-- VERSION: 2.134
------------------1------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
ALTER TABLE opm_group DROP IF EXISTS properties;
DELETE FROM opm_group WHERE id IN ( 34930688, 33554475, 34996224, 33554476, 33554477 );
DELETE FROM opm_access_control_level WHERE id IN (34930689, 34996225, 34996226);
--- AdlerAdministration - 0x2150000 = 34930688
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (34930688, 'AdlerAdministration', 'Edit ADLER Operating', 4, false);
--- Base: 34930688, AdlerAdministrationShow - 34930689 = 0x2150001
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (34930689, 'AdlerAdministrationShow', 'Show ADLER Administration');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (33554475, 'AdlerAdministrationShow', 'Show ADLER Administration', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (33554475, 34930689); -- group_id is: 33554475 = 0x200002b
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (34930688, 33554475); -- AdlerAdministration
--- Adler - 0x2160000 = 34996224
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (34996224, 'Adler', 'Edit ADLER Explosion Cluster', 4, false);
--- Base: 34996224, AdlerExplosionClusterShow - 34996225 = 0x2160001
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (34996225, 'AdlerExplosionClusterShow', 'Show ADLER Explosion Cluster');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (33554476, 'AdlerExplosionClusterShow', 'Show ADLER Explosion Cluster', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (33554476, 34996225); -- group_id is: 33554476 = 0x200002c
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (34996224, 33554476); -- Adler
--- Base: 34996224, AdlerExplosionClusterEdit - 34996226 = 0x2160002
INSERT INTO opm.opm_access_control_level (id, name, description) VALUES (34996226, 'AdlerExplosionClusterEdit', 'Edit ADLER Explosion Cluster');
INSERT INTO opm.opm_group (id, name, description, type_id, is_hidden) VALUES (33554477, 'AdlerExplosionClusterEdit', 'Edit ADLER Explosion Cluster', 1, true);
INSERT INTO opm.opm_acl_allow (group_id, acl_id) VALUES (33554477, 34996226); -- group_id is: 33554477 = 0x200002d
INSERT INTO opm.opm_group_group (group_id, is_member_of_group_id) VALUES (34996224, 33554477); -- Adler
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,28 @@
-- $Id: 2.83_guez_pdm_charge_type.upd 62503 2024-04-19 08:32:50Z rathje $
-- $HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.83_guez_pdm_charge_type.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: New asset type AdlerSAA & new entry in asm_asset
-- PROJECT: Guez
-- DATE: 2025-10-23
-- VERSION: 2.135
------------------1------------------------------------------------------
-- GLOBAL: ASM;
BEGIN;
DELETE FROM asm_asset_type WHERE id = 6;
-- New asset type
INSERT INTO asm_asset_type (id, name) VALUES (6, 'AdlerSAA');
-- Adler SAA (IP for now, name of the server when known)
INSERT INTO asm.asm_asset(id, name, asset_type_id, location_id) VALUES (331, '192.168.133.55', 6, 9);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,31 @@
-- $Id: 2.83_guez_pdm_charge_type.upd 62503 2024-04-19 08:32:50Z rathje $
-- $HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.83_guez_pdm_charge_type.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: New column for table operator_exercise
-- PROJECT: Guez
-- DATE: 2025-10-24
-- VERSION: 2.136
------------------1------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
ALTER TABLE opm_operator_exercise DROP IF EXISTS visible_parties;
ALTER TABLE opm_operator_exercise DROP IF EXISTS hidden_parties;
-- the visible parties for this operator
ALTER TABLE opm_operator_exercise ADD visible_parties integer[];
-- the hidden parties for this operator
ALTER TABLE opm_operator_exercise ADD hidden_parties integer[];
COMMENT ON COLUMN opm_operator_exercise.visible_parties IS 'the visible parties for this operator';
COMMENT ON COLUMN opm_operator_exercise.hidden_parties IS 'the hidden parties for this operator';
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,84 @@
-- $Id: 2.58_guez_pdm_type.upd 61368 2024-01-17 07:54:13Z fritsche_h $
-- $HeadURL: svn://10.196.0.54/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.58_guez_pdm_type.upd $
-- $Author: fritsche_h $
-------------------------------------------------------------------------
-- INFO: New fire purposes for pdm_fire_purpose
-- PROJECT: Guez
-- DATE: 2025-10-27
-- VERSION: 2.137
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
DELETE FROM pdm_fire_purpose;
-- fire_purpose
INSERT INTO pdm_fire_purpose (id, name) VALUES (1, 'abriegeln');
INSERT INTO pdm_fire_purpose (id, name) VALUES (2, 'bekämpfen');
INSERT INTO pdm_fire_purpose (id, name) VALUES (3, 'beleuchten');
INSERT INTO pdm_fire_purpose (id, name) VALUES (4, 'blenden');
INSERT INTO pdm_fire_purpose (id, name) VALUES (5, 'niederhalten');
INSERT INTO pdm_fire_purpose (id, name) VALUES (6, 'sperren');
INSERT INTO pdm_fire_purpose (id, name) VALUES (7, 'stören');
INSERT INTO pdm_fire_purpose (id, name) VALUES (8, 'überwachen');
INSERT INTO pdm_fire_purpose (id, name) VALUES (9, 'vernichten');
INSERT INTO pdm_fire_purpose (id, name) VALUES (10, 'zerschlagen');
INSERT INTO pdm_fire_purpose (id, name) VALUES (11, 'zerstören (Infrastruktur)');
INSERT INTO pdm_fire_purpose (id, name) VALUES (12, 'bekämpfen mit wenig letaler Munition');
INSERT INTO pdm_fire_purpose (id, name) VALUES (13, 'markieren');
INSERT INTO pdm_fire_purpose (id, name) VALUES (14, 'warnen');
INSERT INTO pdm_fire_purpose (id, name) VALUES (15, 'blenden IR');
INSERT INTO pdm_fire_purpose (id, name) VALUES (16, 'beleuchten IR');
INSERT INTO pdm_fire_purpose (id, name) VALUES (17, 'beleuchten mit Wirkung');
INSERT INTO pdm_fire_purpose (id, name) VALUES (18, 'beobachten');
INSERT INTO pdm_fire_purpose (id, name) VALUES (19, 'blenden mit Wirkung');
-- translations (commented, since english translation is missing)
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'abriegeln', 'abriegeln');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'bekämpfen', 'bekämpfen');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'beleuchten', 'beleuchten');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'blenden', 'blenden');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'niederhalten', 'niederhalten');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'sperren', 'sperren');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'stören', 'stören');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'überwachen', 'überwachen');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'vernichten', 'vernichten');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'zerschlagen', 'zerschlagen');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'zerstören (Infrastruktur)', 'zerstören (Infrastruktur)');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'bekämpfen mit wenig letaler Munition', 'bekämpfen mit wenig letaler Munition');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'markieren', 'markieren');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'warnen', 'warnen');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'blenden IR', 'blenden IR');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'beleuchten IR', 'beleuchten IR');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'beleuchten mit Wirkung', 'beleuchten mit Wirkung');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'beobachten', 'beobachten');
--INSERT INTO pdm_translation (iso_code, disambiguation, context, key, translation)
--VALUES ('en_GB', 'name', 'FirePurpose', 'blenden mit Wirkung', 'blenden mit Wirkung');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,37 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Create new table pdm_effect_source
-- PROJECT: Guez
-- DATE: 2025-10-29
-- VERSION: 2.138
-------------------------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
-- drop
DROP TABLE IF EXISTS pdm_effect_source CASCADE;
-- create
CREATE TABLE IF NOT EXISTS pdm_effect_source (
id integer,
name text
);
COMMENT ON TABLE pdm_effect_source IS 'static data generate from enum';
ALTER TABLE IF EXISTS pdm_effect_source ADD CONSTRAINT PK_pdm_effect_source_id PRIMARY KEY (id);
-- inserts
INSERT INTO pdm_effect_source (id, name) VALUES (0, 'ES_Internal');
INSERT INTO pdm_effect_source (id, name) VALUES (1, 'ES_ADLER');
INSERT INTO pdm_effect_source (id, name) VALUES (2, 'ES_HLA');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,161 @@
-- $Id: 2.52_guez_ex_rec_international_mode.upd 59889 2023-08-02 12:11:11Z karwat $
-- $HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.52_guez_ex_rec_international_mode.upd $
-- $Author: karwat $
-------------------------------------------------------------------------
-- INFO: Add additional column effect_source_id
-- PROJECT: Guez
-- DATE: 2025-10-29
-- VERSION: 2.139
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
DROP VIEW IF EXISTS aes_air_support_impact_view;
DROP VIEW IF EXISTS aes_b_c_contamination_view;
DROP VIEW IF EXISTS aes_booby_trap_view;
DROP VIEW IF EXISTS aes_borderline_view;
DROP VIEW IF EXISTS aes_danger_area_view;
DROP VIEW IF EXISTS aes_dus_single_mine_view;
DROP VIEW IF EXISTS aes_explosion_area_view;
DROP VIEW IF EXISTS aes_explosion_cluster_view;
DROP VIEW IF EXISTS aes_explosion_single_view;
DROP VIEW IF EXISTS aes_functional_area_view;
DROP VIEW IF EXISTS aes_gas_pipe_view;
DROP VIEW IF EXISTS aes_mine_area_view;
DROP VIEW IF EXISTS aes_mine_corridor_view;
DROP VIEW IF EXISTS aes_n_contamination_view;
DROP VIEW IF EXISTS aes_off_route_mine_view;
DROP VIEW IF EXISTS aes_recon_area_view;
DROP VIEW IF EXISTS aes_technical_area_view;
ALTER TABLE IF EXISTS aes_entity
DROP CONSTRAINT IF EXISTS FK_aes_entity_effect_source_id_pdm_effect_source_id CASCADE;
ALTER TABLE aes_entity DROP IF EXISTS effect_source_id;
ALTER TABLE rec_aes_item_view DROP IF EXISTS effect_source_id;
ALTER TABLE rec_air_support_impact DROP IF EXISTS effect_source_id;
ALTER TABLE rec_b_c_contamination DROP IF EXISTS effect_source_id;
ALTER TABLE rec_booby_trap DROP IF EXISTS effect_source_id;
ALTER TABLE rec_borderline DROP IF EXISTS effect_source_id;
ALTER TABLE rec_danger_area DROP IF EXISTS effect_source_id;
ALTER TABLE rec_dus_single_mine DROP IF EXISTS effect_source_id;
ALTER TABLE rec_explosion_area DROP IF EXISTS effect_source_id;
ALTER TABLE rec_explosion_cluster DROP IF EXISTS effect_source_id;
ALTER TABLE rec_explosion_single DROP IF EXISTS effect_source_id;
ALTER TABLE rec_functional_area DROP IF EXISTS effect_source_id;
ALTER TABLE rec_gas_pipe DROP IF EXISTS effect_source_id;
ALTER TABLE rec_mine_area DROP IF EXISTS effect_source_id;
ALTER TABLE rec_mine_corridor DROP IF EXISTS effect_source_id;
ALTER TABLE rec_n_contamination DROP IF EXISTS effect_source_id;
ALTER TABLE rec_off_route_mine DROP IF EXISTS effect_source_id;
ALTER TABLE rec_recon_area DROP IF EXISTS effect_source_id;
ALTER TABLE rec_technical_area DROP IF EXISTS effect_source_id;
ALTER TABLE aes_entity ADD effect_source_id integer;
ALTER TABLE rec_aes_item_view ADD effect_source_id integer;
ALTER TABLE rec_air_support_impact ADD effect_source_id integer;
ALTER TABLE rec_b_c_contamination ADD effect_source_id integer;
ALTER TABLE rec_booby_trap ADD effect_source_id integer;
ALTER TABLE rec_borderline ADD effect_source_id integer;
ALTER TABLE rec_danger_area ADD effect_source_id integer;
ALTER TABLE rec_dus_single_mine ADD effect_source_id integer;
ALTER TABLE rec_explosion_area ADD effect_source_id integer;
ALTER TABLE rec_explosion_cluster ADD effect_source_id integer;
ALTER TABLE rec_explosion_single ADD effect_source_id integer;
ALTER TABLE rec_functional_area ADD effect_source_id integer;
ALTER TABLE rec_gas_pipe ADD effect_source_id integer;
ALTER TABLE rec_mine_area ADD effect_source_id integer;
ALTER TABLE rec_mine_corridor ADD effect_source_id integer;
ALTER TABLE rec_n_contamination ADD effect_source_id integer;
ALTER TABLE rec_off_route_mine ADD effect_source_id integer;
ALTER TABLE rec_recon_area ADD effect_source_id integer;
ALTER TABLE rec_technical_area ADD effect_source_id integer;
ALTER TABLE aes_entity ADD CONSTRAINT FK_aes_entity_effect_source_id_pdm_effect_source_id
FOREIGN KEY (effect_source_id) REFERENCES pdm.pdm_effect_source (id) ON DELETE CASCADE ON UPDATE CASCADE;
-- Create Views
CREATE OR REPLACE VIEW aes_air_support_impact_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_air_support_impact.entity_id AS entity_id, aes_air_support_impact.impact_position_x AS impact_position_x, aes_air_support_impact.impact_position_y AS impact_position_y, aes_air_support_impact.flight_time AS flight_time, aes_air_support_impact.id AS aes_air_support_impact_id
FROM aes_air_support_impact, aes_entity
WHERE aes_entity.id = aes_air_support_impact.entity_id;
CREATE OR REPLACE VIEW aes_b_c_contamination_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_b_c_contamination.entity_id AS entity_id, aes_b_c_contamination.impact_position_x AS impact_position_x, aes_b_c_contamination.impact_position_y AS impact_position_y, aes_b_c_contamination.impact_radius AS impact_radius, aes_b_c_contamination.upper_offset AS upper_offset, aes_b_c_contamination.lower_offset AS lower_offset, aes_b_c_contamination.weather_source_id AS weather_source_id, aes_b_c_contamination.propagation_direction AS propagation_direction, aes_b_c_contamination.wind_speed AS wind_speed, aes_b_c_contamination.weather_timestamp AS weather_timestamp, aes_b_c_contamination.weather_position_x AS weather_position_x, aes_b_c_contamination.weather_position_y AS weather_position_y, aes_b_c_contamination.id AS aes_b_c_contamination_id
FROM aes_b_c_contamination, aes_entity
WHERE aes_entity.id = aes_b_c_contamination.entity_id;
CREATE OR REPLACE VIEW aes_booby_trap_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_booby_trap.entity_id AS entity_id, aes_booby_trap.impact_position_x AS impact_position_x, aes_booby_trap.impact_position_y AS impact_position_y, aes_booby_trap.impact_radius AS impact_radius, aes_booby_trap.trigger_radius AS trigger_radius, aes_booby_trap.rotation_angle AS rotation_angle, aes_booby_trap.central_angle AS central_angle, aes_booby_trap.triggered AS triggered, aes_booby_trap.id AS aes_booby_trap_id
FROM aes_booby_trap, aes_entity
WHERE aes_entity.id = aes_booby_trap.entity_id;
CREATE OR REPLACE VIEW aes_borderline_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_borderline.entity_id AS entity_id, aes_borderline.operator_id AS operator_id, aes_borderline.id AS aes_borderline_id
FROM aes_borderline, aes_entity
WHERE aes_entity.id = aes_borderline.entity_id;
CREATE OR REPLACE VIEW aes_danger_area_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_danger_area.entity_id AS entity_id, aes_danger_area.id AS aes_danger_area_id
FROM aes_danger_area, aes_entity
WHERE aes_entity.id = aes_danger_area.entity_id;
CREATE OR REPLACE VIEW aes_dus_single_mine_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_dus_single_mine.entity_id AS entity_id, aes_dus_single_mine.mine_id AS mine_id, aes_dus_single_mine.position_x AS position_x, aes_dus_single_mine.position_y AS position_y, aes_dus_single_mine.id AS aes_dus_single_mine_id
FROM aes_dus_single_mine, aes_entity
WHERE aes_entity.id = aes_dus_single_mine.entity_id;
CREATE OR REPLACE VIEW aes_explosion_area_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_explosion.entity_id AS entity_id, aes_explosion.impact_position_x AS impact_position_x, aes_explosion.impact_position_y AS impact_position_y, aes_explosion.rotation_angle AS rotation_angle, aes_explosion.fire_purpose AS fire_purpose, aes_explosion.fire_request_time AS fire_request_time, aes_explosion.altitude AS altitude, aes_explosion_area.explosion_id AS explosion_id, aes_explosion_area.impact_width AS impact_width, aes_explosion_area.impact_length AS impact_length, aes_explosion_area.cannon_count AS cannon_count, aes_explosion_area.cannon_rounds AS cannon_rounds, aes_explosion_area.original_effect_start AS original_effect_start, aes_explosion_area.original_effect_duration AS original_effect_duration, aes_explosion_area.remain_explosion_number AS remain_explosion_number, aes_explosion_area.id AS aes_explosion_area_id
FROM aes_explosion_area, aes_entity, aes_explosion
WHERE aes_entity.id = aes_explosion.entity_id AND
aes_explosion.id = aes_explosion_area.explosion_id;
CREATE OR REPLACE VIEW aes_explosion_cluster_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_explosion.entity_id AS entity_id, aes_explosion.impact_position_x AS impact_position_x, aes_explosion.impact_position_y AS impact_position_y, aes_explosion.rotation_angle AS rotation_angle, aes_explosion.fire_purpose AS fire_purpose, aes_explosion.fire_request_time AS fire_request_time, aes_explosion.altitude AS altitude, aes_explosion_cluster.explosion_id AS explosion_id, aes_explosion_cluster.impact_width AS impact_width, aes_explosion_cluster.impact_length AS impact_length, aes_explosion_cluster.explosion_geometry_id AS explosion_geometry_id, aes_explosion_cluster.zog AS zog, aes_explosion_cluster.mhp_count_request AS mhp_count_request, aes_explosion_cluster.mhp_rotation_request AS mhp_rotation_request, aes_explosion_cluster.impact_count AS impact_count, aes_explosion_cluster.fuse_type_id AS fuse_type_id, aes_explosion_cluster.fire_purpose_id AS fire_purpose_id, aes_explosion_cluster.remain_explosion_number AS remain_explosion_number, aes_explosion_cluster.firing_center_position_x AS firing_center_position_x, aes_explosion_cluster.firing_center_position_y AS firing_center_position_y, aes_explosion_cluster.firing_center_position_z AS firing_center_position_z, aes_explosion_cluster.peak_height AS peak_height, aes_explosion_cluster.flight_duration AS flight_duration, aes_explosion_cluster.original_effect_start AS original_effect_start, aes_explosion_cluster.original_effect_duration AS original_effect_duration, aes_explosion_cluster.element AS element, aes_explosion_cluster.launch_velocity AS launch_velocity, aes_explosion_cluster.launch_angle_deg AS launch_angle_deg, aes_explosion_cluster.drop_angle AS drop_angle, aes_explosion_cluster.tap_timepoint AS tap_timepoint, aes_explosion_cluster.lc_prf AS lc_prf, aes_explosion_cluster.lc_termination AS lc_termination, aes_explosion_cluster.cloud_base AS cloud_base, aes_explosion_cluster.id AS aes_explosion_cluster_id
FROM aes_explosion_cluster, aes_entity, aes_explosion
WHERE aes_entity.id = aes_explosion.entity_id AND
aes_explosion.id = aes_explosion_cluster.explosion_id;
CREATE OR REPLACE VIEW aes_explosion_single_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_explosion.entity_id AS entity_id, aes_explosion.impact_position_x AS impact_position_x, aes_explosion.impact_position_y AS impact_position_y, aes_explosion.rotation_angle AS rotation_angle, aes_explosion.fire_purpose AS fire_purpose, aes_explosion.fire_request_time AS fire_request_time, aes_explosion.altitude AS altitude, aes_explosion_single.explosion_id AS explosion_id, aes_explosion_single.id AS aes_explosion_single_id
FROM aes_explosion_single, aes_entity, aes_explosion
WHERE aes_entity.id = aes_explosion.entity_id AND
aes_explosion.id = aes_explosion_single.explosion_id;
CREATE OR REPLACE VIEW aes_functional_area_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_functional_area.entity_id AS entity_id, aes_functional_area.point_symbol AS point_symbol, aes_functional_area.position_x AS position_x, aes_functional_area.position_y AS position_y, aes_functional_area.width AS width, aes_functional_area.length AS length, aes_functional_area.functional_area_type_id AS functional_area_type_id, aes_functional_area.decon_mode AS decon_mode, aes_functional_area.decon_time AS decon_time, aes_functional_area.maint_mode AS maint_mode, aes_functional_area.maint_time AS maint_time, aes_functional_area.medic_mode AS medic_mode, aes_functional_area.medic_time AS medic_time, aes_functional_area.supply_mode AS supply_mode, aes_functional_area.supply_time AS supply_time, aes_functional_area.notfight_mode AS notfight_mode, aes_functional_area.notfight_time AS notfight_time, aes_functional_area.id AS aes_functional_area_id
FROM aes_functional_area, aes_entity
WHERE aes_entity.id = aes_functional_area.entity_id;
CREATE OR REPLACE VIEW aes_gas_pipe_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_gas_pipe.entity_id AS entity_id, aes_gas_pipe.operator_id AS operator_id, aes_gas_pipe.width AS width, aes_gas_pipe.id AS aes_gas_pipe_id
FROM aes_gas_pipe, aes_entity
WHERE aes_entity.id = aes_gas_pipe.entity_id;
CREATE OR REPLACE VIEW aes_mine_area_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_mine.entity_id AS entity_id, aes_mine.is_laid_hidden AS is_laid_hidden, aes_mine.laying_procedure_type_id AS laying_procedure_type_id, aes_mine_area.mine_id AS mine_id, aes_mine_area.width AS width, aes_mine_area.density AS density, aes_mine_area.is_center_line AS is_center_line, aes_mine_area.id AS aes_mine_area_id
FROM aes_mine_area, aes_entity, aes_mine
WHERE aes_entity.id = aes_mine.entity_id AND
aes_mine.id = aes_mine_area.mine_id;
CREATE OR REPLACE VIEW aes_mine_corridor_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_mine_corridor.entity_id AS entity_id, aes_mine_corridor.width AS width, aes_mine_corridor.id AS aes_mine_corridor_id
FROM aes_mine_corridor, aes_entity
WHERE aes_entity.id = aes_mine_corridor.entity_id;
CREATE OR REPLACE VIEW aes_n_contamination_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_n_contamination.entity_id AS entity_id, aes_n_contamination.impact_position_x AS impact_position_x, aes_n_contamination.impact_position_y AS impact_position_y, aes_n_contamination.border_length_inner AS border_length_inner, aes_n_contamination.border_length_outer AS border_length_outer, aes_n_contamination.impact_radius AS impact_radius, aes_n_contamination.span_angle AS span_angle, aes_n_contamination.rotation_angle AS rotation_angle, aes_n_contamination.detonation_value AS detonation_value, aes_n_contamination.weather_source_id AS weather_source_id, aes_n_contamination.id AS aes_n_contamination_id
FROM aes_n_contamination, aes_entity
WHERE aes_entity.id = aes_n_contamination.entity_id;
CREATE OR REPLACE VIEW aes_off_route_mine_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_off_route_mine.entity_id AS entity_id, aes_off_route_mine.impact_radius AS impact_radius, aes_off_route_mine.width AS width, aes_off_route_mine.length AS length, aes_off_route_mine.impact_position_x AS impact_position_x, aes_off_route_mine.impact_position_y AS impact_position_y, aes_off_route_mine.rotation_angle AS rotation_angle, aes_off_route_mine.triggered AS triggered, aes_off_route_mine.id AS aes_off_route_mine_id
FROM aes_off_route_mine, aes_entity
WHERE aes_entity.id = aes_off_route_mine.entity_id;
CREATE OR REPLACE VIEW aes_recon_area_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_recon_area.entity_id AS entity_id, aes_recon_area.position_x AS position_x, aes_recon_area.position_y AS position_y, aes_recon_area.width AS width, aes_recon_area.height AS height, aes_recon_area.rotation_angle AS rotation_angle, aes_recon_area.purpose AS purpose, aes_recon_area.id AS aes_recon_area_id
FROM aes_recon_area, aes_entity
WHERE aes_entity.id = aes_recon_area.entity_id;
CREATE OR REPLACE VIEW aes_technical_area_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.effect_source_id AS effect_source_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_technical_area.entity_id AS entity_id, aes_technical_area.type_id AS type_id, aes_technical_area.position_x AS position_x, aes_technical_area.position_y AS position_y, aes_technical_area.width AS width, aes_technical_area.length AS length, aes_technical_area.id AS aes_technical_area_id
FROM aes_technical_area, aes_entity
WHERE aes_entity.id = aes_technical_area.entity_id;
COMMIT;
@@ -0,0 +1,43 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Updates for aes functional areas
-- PROJECT: Guez
-- DATE: 2022-05-06
-- VERSION: 2.13
-------------------------------------------------------------------------
-- GLOBAL: AES,PDM;
BEGIN;
INSERT INTO aes.aes_functional_area_type(id, name, point_symbol, decon_mode, decon_time, maint_mode, maint_time, medic_mode, medic_time)
VALUES(5, 'Rearm, Refuel, Resupply Point (R3P)', 'AP6D|CMPL|10012500003212000000', -1, 0, -1, 0, 2, 90); -- VVD, APP: 321200
INSERT INTO aes.aes_functional_area_type(id, name, point_symbol, decon_mode, decon_time, maint_mode, maint_time, medic_mode, medic_time)
VALUES(6, 'Maintenance Collection Point', 'AP6D|CMPL|10012500003210000000', -1, 0, -1, 0, 2, 90); -- SchadMat, APP: 321000
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation)
VALUES ('de_DE', 'name', 'FunctionalAreaType', 'Rearm, Refuel, Resupply Point (R3P)', 'VVD');
INSERT INTO pdm.pdm_translation (iso_code, disambiguation, context, key, translation)
VALUES ('de_DE', 'name', 'FunctionalAreaType', 'Maintenance Collection Point', 'SchadMat Platz');
UPDATE pdm.pdm_translation SET key = 'Medical Treatment Facility, Cat. 1' WHERE translation = 'Rettungsstation';
UPDATE pdm.pdm_translation SET key = 'Medical Treatment Facility, Cat. 3' WHERE translation = 'Einsatzlazarett';
COMMIT;
-- EXERCISE: ALL;
BEGIN;
INSERT INTO aes_functional_area_type(id, name, point_symbol, decon_mode, decon_time, maint_mode, maint_time, medic_mode, medic_time)
VALUES(5, 'Rearm, Refuel, Resupply Point (R3P)', 'AP6D|CMPL|10012500003212000000', -1, 0, -1, 0, 2, 90); -- VVD, APP: 321200
INSERT INTO aes_functional_area_type(id, name, point_symbol, decon_mode, decon_time, maint_mode, maint_time, medic_mode, medic_time)
VALUES(6, 'Maintenance Collection Point', 'AP6D|CMPL|10012500003210000000', -1, 0, -1, 0, 2, 90); -- SchadMat, APP: 321000
COMMIT;
@@ -0,0 +1,23 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add abc_protection_mode column in rec_participant_mode
-- PROJECT: Guez
-- DATE: 2025-11-04
-- VERSION: 2.140
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS rec_participant_mode ADD COLUMN IF NOT EXISTS abc_protection_mode INTEGER;
ALTER TABLE IF EXISTS rec_participant_mode_report ADD COLUMN IF NOT EXISTS abc_protection_mode INTEGER;
COMMIT;
@@ -0,0 +1,88 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add Aes ChargeEffect
-- PROJECT: Guez
-- DATE: 2025-11-04
-- VERSION: 2.141
-------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE IF EXISTS aes_charge_effect DROP CONSTRAINT IF EXISTS PK_aes_charge_effect_id CASCADE;
ALTER TABLE IF EXISTS aes_charge_effect DROP CONSTRAINT IF EXISTS FK_aes_charge_effect_charge_type_id_pdm_charge_type_id CASCADE;
ALTER TABLE IF EXISTS aes_charge_effect DROP CONSTRAINT IF EXISTS FK_aes_charge_effect_fuse_type_id_pdm_fuse_type_id CASCADE;
ALTER TABLE IF EXISTS aes_charge_effect DROP CONSTRAINT IF EXISTS FK_aes_charge_effect_gear_type_id_pdm_gear_type_id CASCADE;
ALTER TABLE IF EXISTS aes_charge_effect DROP CONSTRAINT IF EXISTS UQ_aes_charge_effect_id CASCADE;
ALTER TABLE IF EXISTS rec_charge_effect DROP CONSTRAINT IF EXISTS PK_rec_charge_effect_rec_id CASCADE;
ALTER TABLE IF EXISTS rec_charge_effect DROP CONSTRAINT IF EXISTS IDX_rec_charge_effect_sample_time CASCADE;
DROP TABLE IF EXISTS aes_charge_effect CASCADE;
DROP TABLE IF EXISTS rec_charge_effect CASCADE;
CREATE TABLE IF NOT EXISTS aes_charge_effect (
id integer DEFAULT nextval(( 'aes_charge_effect_id_seq'::text)::regclass),
name text,
charge_type_id integer,
effect_duration bigint,
effect_start bigint,
fuse_type_id integer,
gear_type_id integer,
originator_id integer,
originator_type_id integer,
position_x double precision,
position_y double precision,
position_z double precision,
properties jsonb
);
CREATE TABLE IF NOT EXISTS rec_charge_effect (
id integer,
name text,
is_deleted boolean,
is_used boolean,
sample_time bigint,
charge_type_id integer,
effect_duration integer,
effect_start bigint,
fuse_type_id integer,
gear_type_id integer,
originator_id integer,
originator_type_id integer,
position_lon double precision,
position_lat double precision,
position_z double precision,
state integer,
properties text,
rec_id bigint DEFAULT nextval(( 'rec_charge_effect_rec_id_seq'::text)::regclass),
dds_is_alive boolean DEFAULT true,
insert_time bigint DEFAULT (extract(epoch from now()) * 1000)
);
COMMENT ON TABLE rec_charge_effect IS 'recorded data for topic ChargeEffect';
CREATE SEQUENCE IF NOT EXISTS aes_charge_effect_id_seq INCREMENT 1 START 1 MINVALUE 1;
CREATE SEQUENCE IF NOT EXISTS rec_charge_effect_rec_id_seq INCREMENT 1 START 1 MINVALUE 1;
ALTER TABLE IF EXISTS aes_charge_effect ADD CONSTRAINT PK_aes_charge_effect_id PRIMARY KEY (id);
ALTER TABLE IF EXISTS rec_charge_effect ADD CONSTRAINT PK_rec_charge_effect_rec_id PRIMARY KEY (rec_id);
ALTER TABLE aes_charge_effect ADD CONSTRAINT FK_aes_charge_effect_charge_type_id_pdm_charge_type_id
FOREIGN KEY (charge_type_id) REFERENCES pdm.pdm_charge_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE aes_charge_effect ADD CONSTRAINT FK_aes_charge_effect_fuse_type_id_pdm_fuse_type_id
FOREIGN KEY (fuse_type_id) REFERENCES pdm.pdm_fuse_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE aes_charge_effect ADD CONSTRAINT FK_aes_charge_effect_gear_type_id_pdm_gear_type_id
FOREIGN KEY (gear_type_id) REFERENCES pdm.pdm_gear_type (id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE aes_charge_effect ADD CONSTRAINT UQ_aes_charge_effect_id UNIQUE (id);
CREATE INDEX IDX_rec_charge_effect_sample_time ON rec_charge_effect (sample_time);
COMMIT;
@@ -0,0 +1,32 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add column is_hidden to flm_folder & flm_file_content
-- PROJECT: Guez
-- DATE: 2025-11-06
-- VERSION: 2.142
-------------------------------------------------------------------------
-- GLOBAL: FLM;
BEGIN;
-- drop
ALTER TABLE flm_folder DROP IF EXISTS is_hidden CASCADE;
ALTER TABLE flm_file_content DROP IF EXISTS is_hidden CASCADE;
ALTER TABLE flm_folder ADD is_hidden boolean DEFAULT false;
ALTER TABLE flm_file_content ADD is_hidden boolean DEFAULT false;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
-- View: please adjust exercise Id
CREATE OR REPLACE VIEW flm_file_content_view AS SELECT flm_file_content.id AS id, flm_file_content.name AS name, flm_file_content.is_template AS is_template, flm_file_content.is_hidden AS is_hidden, flm_file_content.folder_id AS folder_id, flm_file_content.file_category_id AS file_category_id, flm_file_content.file_type_id AS file_type_id, flm_file_content.file_status_id AS file_status_id, flm_file_content.exercise_id AS exercise_id, flm_file_content.phase_id AS phase_id, flm_file_content.operator_id AS operator_id, flm_file_content.content AS content, flm_file_content.properties AS properties, flm_file_content.is_used_by AS is_used_by, flm_file_content.used_by AS used_by, flm_file_content.last_modified AS last_modified
FROM flm.flm_file_content
WHERE exercise_id=42;
COMMIT;
@@ -0,0 +1,28 @@
-------------------------------------------------------------------------
-- INFO: New operator right for Uas edit & linking
-- PROJECT: Guez
-- DATE: 2025-11-12
-- VERSION: 2.143
-------------------------------------------------------------------------
-- GLOBAL: OPM;
BEGIN;
-- delete rights (if already exists)
DELETE FROM opm_group WHERE id IN (452984852, 453509120);
DELETE FROM opm_access_control_level WHERE id = 453509121;
--- Uas - 0x1b080000 = 453509120
INSERT INTO opm_group (id, name, description, type_id, is_hidden) VALUES (453509120, 'Uas', 'Edit and link Uas to participants', 4, false);
--- Base: 453509120, EditAndLinkUas - 453509121 = 0x1b080001
INSERT INTO opm_access_control_level (id, name, description) VALUES (453509121, 'EditAndLinkUas', 'Edit and link Uas to participants');
INSERT INTO opm_group (id, name, description, type_id, is_hidden) VALUES (452984852, 'EditAndLinkUas', 'Edit and link Uas to participants', 1, true);
INSERT INTO opm_acl_allow (group_id, acl_id) VALUES (452984852, 453509121); -- group_id is: 452984852 = 0x1b000014
INSERT INTO opm_group_group (group_id, is_member_of_group_id) VALUES (453509120, 452984852); -- Uas
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1,21 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Update chargeType 2050 with isVirtuallyFireable in props
-- PROJECT: Guez
-- DATE: 2025-11-13
-- VERSION: 2.144
------------------1------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
UPDATE pdm.pdm_charge_type SET properties = '{"impactRadius": 10,"isVirtuallyFireable":true}' WHERE ID = 2050;
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
@@ -0,0 +1 @@
@@ -0,0 +1,35 @@
-- $Id: 2.83_guez_pdm_charge_type.upd 62503 2024-04-19 08:32:50Z rathje $
-- $HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.83_guez_pdm_charge_type.upd $
-- $Author: rathje $
-------------------------------------------------------------------------
-- INFO: rename column from id_effect_show_actor to esm_participant_id
-- table esm_effect_show: rename column from id_effect_show_actor to esm_participant_id
-- table esm_effect_show_actor_relocation: rename column from id_effect_show_actor to esm_participant_id
-- table esm_effect_show_vehicle_status: delete column equipment_number
-- table esm_effect_show_vehicle_status: rename column from id_effect_show_actor to esm_participant_id
-- constraint name=UQ_esm_effect_show_vehicle_status_esm_participant_id: rename equipment_number to esm_participant_id
-- PROJECT: Guez
-- DATE: 2025-11-19
-- VERSION: 2.145
------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
ALTER TABLE esm_effect_show RENAME COLUMN id_effect_show_actor TO esm_participant_id;
ALTER TABLE esm_effect_show_actor_relocation RENAME COLUMN id_effect_show_actor TO esm_participant_id;
ALTER TABLE esm_effect_show_vehicle_status DROP IF EXISTS equipment_number;
ALTER TABLE esm_effect_show_vehicle_status RENAME COLUMN id_effect_show_actor TO esm_participant_id;
ALTER TABLE IF EXISTS esm_effect_show_vehicle_status DROP CONSTRAINT IF EXISTS PK_esm_effect_show_vehicle_status_id_effect_show_actor CASCADE;
ALTER TABLE IF EXISTS esm_effect_show_vehicle_status ADD CONSTRAINT PK_esm_effect_show_vehicle_status_esm_participant_id PRIMARY KEY (esm_participant_id);
-- no view
COMMIT;
@@ -0,0 +1,35 @@
-- $Id: 2.60_guez_aes_functional_area.upd 60648 2023-10-18 07:09:02Z rathje $
-- $HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Tools/DBUpdate/updates/guez/2.60_guez_aes_functional_area.upd $
-- $Author: rathje $
--------------------------------------------------------------------------------------
-- INFO: New column esm_participant_ids for explosion cluster table
-- PROJECT: Guez
-- DATE: 2025-11-19
-- VERSION: 2.146
--------------------------------------------------------------------------------------
-- GLOBAL: NONE;
BEGIN;
COMMIT;
-- EXERCISE: ALL;
BEGIN;
DROP VIEW IF EXISTS aes_explosion_cluster_view;
ALTER TABLE aes_explosion_cluster DROP IF EXISTS esm_participant_ids;
ALTER TABLE aes_explosion_cluster ADD esm_participant_ids integer[];
CREATE OR REPLACE VIEW aes_explosion_cluster_view AS SELECT aes_entity.id AS id, aes_entity.charge_type_id AS charge_type_id, aes_entity.effect_state_id AS effect_state_id, aes_entity.party_id AS party_id, aes_entity.participant_id AS participant_id, aes_entity.effect_duration AS effect_duration, aes_entity.effect_start AS effect_start, aes_entity.name AS name, aes_entity.effect_marking_in_ta AS effect_marking_in_ta, aes_entity.external_id AS external_id, aes_entity.is_central AS is_central, aes_entity.associated_aes_id AS associated_aes_id, aes_entity.is_using_effect_state_received AS is_using_effect_state_received, aes_entity.properties AS properties, aes_explosion.entity_id AS entity_id, aes_explosion.impact_position_x AS impact_position_x, aes_explosion.impact_position_y AS impact_position_y, aes_explosion.rotation_angle AS rotation_angle, aes_explosion.fire_purpose AS fire_purpose, aes_explosion.fire_request_time AS fire_request_time, aes_explosion.altitude AS altitude, aes_explosion_cluster.explosion_id AS explosion_id, aes_explosion_cluster.impact_width AS impact_width, aes_explosion_cluster.impact_length AS impact_length, aes_explosion_cluster.explosion_geometry_id AS explosion_geometry_id, aes_explosion_cluster.zog AS zog, aes_explosion_cluster.mhp_count_request AS mhp_count_request, aes_explosion_cluster.mhp_rotation_request AS mhp_rotation_request, aes_explosion_cluster.impact_count AS impact_count, aes_explosion_cluster.fuse_type_id AS fuse_type_id, aes_explosion_cluster.fire_purpose_id AS fire_purpose_id, aes_explosion_cluster.remain_explosion_number AS remain_explosion_number, aes_explosion_cluster.firing_center_position_x AS firing_center_position_x, aes_explosion_cluster.firing_center_position_y AS firing_center_position_y, aes_explosion_cluster.firing_center_position_z AS firing_center_position_z, aes_explosion_cluster.peak_height AS peak_height, aes_explosion_cluster.flight_duration AS flight_duration, aes_explosion_cluster.original_effect_start AS original_effect_start, aes_explosion_cluster.original_effect_duration AS original_effect_duration, aes_explosion_cluster.element AS element, aes_explosion_cluster.launch_velocity AS launch_velocity, aes_explosion_cluster.launch_angle_deg AS launch_angle_deg, aes_explosion_cluster.drop_angle AS drop_angle, aes_explosion_cluster.tap_timepoint AS tap_timepoint, aes_explosion_cluster.lc_prf AS lc_prf, aes_explosion_cluster.lc_termination AS lc_termination, aes_explosion_cluster.cloud_base AS cloud_base, aes_explosion_cluster.esm_participant_ids AS esm_participant_ids, aes_explosion_cluster.id AS aes_explosion_cluster_id
FROM aes_explosion_cluster, aes_entity, aes_explosion
WHERE aes_entity.id = aes_explosion.entity_id AND
aes_explosion.id = aes_explosion_cluster.explosion_id;
COMMIT;
@@ -0,0 +1,26 @@
-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Add translations for folder names (HQ-Messages)
-- PROJECT: Guez
-- DATE: 2025-11-14
-- VERSION: 2.147
------------------1------------------------------------------------------
-- GLOBAL: PDM;
BEGIN;
INSERT INTO pdm.pdm_translation (iso_code, context, key, disambiguation, translation)
VALUES ( 'de_DE', 'Folder', 'HQ Data', 'name', 'HQ Daten');
INSERT INTO pdm.pdm_translation (iso_code, context, key, disambiguation, translation)
VALUES ( 'de_DE', 'Folder', 'Messages', 'name', 'Meldungen');
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;
Loaded 100 of 16245 files, more files were not shown because too many files have changed in this diff. Show more