Files
qt5-legatus-legacy/Lts/Tools/DBUpdate/updates/guez/2.82_guez_ism_footprint.upd
T
2026-08-13 18:33:10 +02:00

73 lines
4.1 KiB
Plaintext
Executable File

-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: New ground floor footprint for 3 buildings (tunnel/tube/Channel)
-- PROJECT: Guez
-- DATE: 2024-04-15
-- VERSION: 2.82
------------------1------------------------------------------------------
-- GLOBAL: ISM;
BEGIN;
DELETE FROM ism_structure_element_footprint where structure_element_id = 228283 AND index_no > 15;
DELETE FROM ism_structure_element_footprint where structure_element_id = 173807 AND index_no > 21;
DELETE FROM ism_structure_element_footprint where structure_element_id = 173688 AND index_no = 47;
ALTER TABLE ism_structure_element_footprint DROP IF EXISTS is_ground_level;
ALTER TABLE ism_structure_element_footprint ADD is_ground_level boolean DEFAULT false;
-- Salchau Tunnel
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 228283, 16, 0, 0, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 228283, 17, 2, 0, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 228283, 18, 2, 2, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 228283, 19, 0, 2, 0, true);
-- U-Bahn Footprint - 1.Eingang
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 22, 12, 5, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 23, 12, -5, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 24, -1, -5, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 25, -1, 5, 0, true);
-- U-Bahn Footprint - 2.Eingang
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 26, 125, 5, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 27, 125, -5, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 28, 140, -5, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 29, 140, 5, 0, true);
-- U-Bahn Footprint - 3.Eingang
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 30, 317, 5, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 31, 317, -5, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 32, 334, -5, 0, true);
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173807, 33, 334, 5, 0, true);
-- Kanaele - nur einen Punkt, damit die Minen trotzdem gesetzt werden
INSERT INTO ism.ism_structure_element_footprint (structure_element_id, index_no,rel_position_x, rel_position_y, rel_position_z, is_ground_level)
VALUES ( 173688, 47, 0, 0, 0, true);
COMMIT;
-- EXERCISE: NONE;
BEGIN;
COMMIT;