52 lines
4.2 KiB
Plaintext
Executable File
52 lines
4.2 KiB
Plaintext
Executable File
-- $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 cloud_base for explosion cluster table
|
|
-- PROJECT: Guez
|
|
-- DATE: 2024-06-19
|
|
-- VERSION: 2.92
|
|
--------------------------------------------------------------------------------------
|
|
|
|
|
|
-- GLOBAL: NONE;
|
|
BEGIN;
|
|
COMMIT;
|
|
|
|
-- EXERCISE: ALL;
|
|
BEGIN;
|
|
|
|
|
|
DROP VIEW IF EXISTS aes_explosion_cluster_view;
|
|
|
|
ALTER TABLE aes_explosion_cluster DROP IF EXISTS cloud_base;
|
|
ALTER TABLE rec_explosion_cluster DROP IF EXISTS cloud_base;
|
|
ALTER TABLE aes_explosion_cluster DROP IF EXISTS mhp_rotation_request;
|
|
ALTER TABLE rec_explosion_cluster DROP IF EXISTS mhp_rotation_request;
|
|
ALTER TABLE rec_explosion_cluster DROP IF EXISTS zog;
|
|
ALTER TABLE rec_explosion_cluster DROP IF EXISTS tla;
|
|
ALTER TABLE rec_explosion_cluster DROP IF EXISTS flight_curve;
|
|
ALTER TABLE rec_explosion_cluster DROP IF EXISTS laser_guiding;
|
|
|
|
|
|
ALTER TABLE aes_explosion_cluster ADD cloud_base integer;
|
|
ALTER TABLE rec_explosion_cluster ADD cloud_base integer;
|
|
COMMENT ON COLUMN aes_explosion_cluster.cloud_base IS '[m], cloud lower limit';
|
|
|
|
ALTER TABLE aes_explosion_cluster ADD mhp_rotation_request double precision;
|
|
ALTER TABLE rec_explosion_cluster ADD mhp_rotation_request double precision;
|
|
|
|
ALTER TABLE rec_explosion_cluster ADD tla integer;
|
|
ALTER TABLE rec_explosion_cluster ADD flight_curve jsonb;
|
|
ALTER TABLE rec_explosion_cluster ADD laser_guiding jsonb;
|
|
|
|
|
|
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_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.flight_curve_id AS flight_curve_id, 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;
|
|
|
|
|
|
COMMIT;
|