This commit is contained in:
dheepa
2021-10-28 09:12:13 +00:00
parent f3cf5e1d2d
commit 8402c9b738
74 changed files with 3883 additions and 908 deletions

View File

@@ -396,66 +396,75 @@ CREATE TABLE fw_ods.fw_ods_drawbar_performance (
drop table if exists fw_ods.fw_ods_observations;
-- fw_ods.fw_ods_observations definition
-- Drop table
-- DROP TABLE fw_ods.fw_ods_observations;
CREATE TABLE fw_ods.fw_ods_observations (
syspk bigserial NOT NULL,
client_id fw_ods.fw_num_dimid NULL,
function_id fw_ods.fw_num_dimid NULL,
test_file_mnemonic fw_ods.fw_text NULL,
test_sheet_mnemonic fw_ods.fw_text NULL,
test_file_id fw_ods.fw_num_dimid NULL,
test_file_name fw_ods.fw_text NULL,
test_iteration_number fw_ods.fw_num_dimid NULL,
platform fw_ods.fw_text NULL,
benchmark_yn fw_ods.fw_text NULL,
tractor_make fw_ods.fw_text NULL,
tractor_model fw_ods.fw_text NULL,
tractor_engine_hp fw_ods.fw_num_dimid NULL,
wheel_drive_type fw_ods.fw_text NULL,
name_of_implement fw_ods.fw_text NULL,
type_of_implement fw_ods.fw_text NULL,
season fw_ods.fw_text NULL,
"configuration" fw_ods.fw_text NULL,
engine_smoke_on_load fw_ods.fw_text NULL,
engine_acceleration_smoke fw_ods.fw_text NULL,
range_gear_shifting fw_ods.fw_text NULL,
speed_gear_shifting fw_ods.fw_text NULL,
draft_response fw_ods.fw_text NULL,
tractor_steer_ability fw_ods.fw_text NULL,
tractor_braking_performance fw_ods.fw_text NULL,
front_visibility fw_ods.fw_text NULL,
implement_accessibility fw_ods.fw_text NULL,
front_wheel_dragging_at_turning fw_ods.fw_text NULL,
front_end_lifting_during_operation fw_ods.fw_text NULL,
rpm_recovery_time fw_ods.fw_text NULL,
engine_vibration fw_ods.fw_text NULL,
engine_sound fw_ods.fw_text NULL,
implement_lifing_lowering_response fw_ods.fw_text NULL,
pulverization_quality fw_ods.fw_text NULL,
pulverization_index fw_ods.fw_text NULL,
created_by fw_ods.fw_text NULL DEFAULT CURRENT_USER,
create_timestamp fw_ods.fw_timestamp NULL DEFAULT now(),
updated_by fw_ods.fw_text NULL ,
update_timestamp fw_ods.fw_timestamp null
);
syspk bigserial NOT NULL,
client_id fw_ods."fw_num_dimid" NULL,
function_id fw_ods."fw_num_dimid" NULL,
test_file_mnemonic fw_ods."fw_text" NULL,
test_sheet_mnemonic fw_ods."fw_text" NULL,
test_file_id fw_ods."fw_num_dimid" NULL,
test_file_name fw_ods."fw_text" NULL,
test_iteration_number fw_ods."fw_num_dimid" NULL,
platform fw_ods."fw_text" NULL,
benchmark_yn fw_ods."fw_text" NULL,
tractor_make fw_ods."fw_text" NULL,
tractor_model fw_ods."fw_text" NULL,
tractor_engine_hp fw_ods."fw_num_dimid" NULL,
wheel_drive_type fw_ods."fw_text" NULL,
name_of_implement fw_ods."fw_text" NULL,
type_of_implement fw_ods."fw_text" NULL,
season fw_ods."fw_text" NULL,
configuration fw_ods."fw_text" NULL,
parameters fw_ods."fw_text" NULL,
"sequence" fw_ods."fw_num_dimid" NULL,
value1 fw_ods."fw_text" NULL,
value2 fw_ods."fw_text" NULL,
value3 fw_ods."fw_text" NULL,
value4 fw_ods."fw_text" NULL,
value5 fw_ods."fw_text" NULL,
display_yn fw_ods."fw_text" NULL,
created_by fw_ods."fw_text" NULL,
updated_by fw_ods."fw_text" NULL,
create_timestamp fw_ods."fw_timestamp" NULL,
update_timestamp fw_ods."fw_timestamp" NULL,
old_test_file_name fw_ods."fw_text" NULL
);
-- fw_ods.fw_ods_tractor_model_info definition
-- fw_ods.tractor_info definition
DROP table if exists fw_ods.tractor_info;
CREATE TABLE fw_ods.tractor_info (
"#" int4 NULL,
test_file_mnemonic varchar(7) NULL,
tractor_make varchar(11) NULL,
tractor_model varchar(56) NULL,
platform varchar(14) NULL,
tractor_engine_hp int4 NULL,
wheel_drive_type varchar(6) NULL,
"configuration" varchar(12) NULL
-- Drop table
DROP TABLE if exists fw_ods.fw_ods_tractor_model_info;
CREATE TABLE fw_ods.fw_ods_tractor_model_info (
syspk serial NOT NULL,
client_id fw_ods."fw_num_dimid" NOT NULL,
function_id fw_ods."fw_num_dimid" NOT NULL,
platform fw_ods."fw_text" NULL,
tractor_make fw_ods."fw_text" NULL,
tractor_model fw_ods."fw_text" NULL,
tractor_engine_hp fw_ods."fw_num_dimid" NULL,
wheel_drive_type fw_ods."fw_text" NULL,
"configuration" fw_ods."fw_text" NULL,
created_by fw_ods."fw_text" NULL DEFAULT CURRENT_USER,
create_timestamp fw_ods."fw_timestamp" NULL DEFAULT now(),
updated_by fw_ods."fw_text" NULL,
update_timestamp fw_ods."fw_timestamp" NULL,
CONSTRAINT fw_ods_tractor_model_info_unique_key UNIQUE (client_id, function_id, platform, tractor_make, tractor_model, tractor_engine_hp, wheel_drive_type, configuration)
);
-- fw_ods.fw_ods_misnomer definition
DROP table if exists fw_ods.fw_ods_misnomer;
-- Drop table
DROP TABLE if exists fw_ods.fw_ods_misnomer;
CREATE TABLE fw_ods.fw_ods_misnomer (
syspk int4 NOT NULL,
@@ -472,6 +481,20 @@ CREATE TABLE fw_ods.fw_ods_misnomer (
);
alter table fw_ods.fw_ods_comments
add column test_date_year fw_ods.fw_num_dimid,
add column gear_used fw_ods.fw_text ,
add column speed_rpm fw_ods.fw_num_dimid;
alter table fw_ods.fw_ods add column fuel_consumption_ml_per_km_per_tonne fw_ods.fw_num_metric;
alter table fw_ods.fw_ods add column coordinates fw_ods.fw_num_metric;
alter table fw_ods.fw_ods
add column vb_no_load_vd_microns fw_ods.fw_num_dimid,
add column vb_no_load_hd_microns fw_ods.fw_num_dimid,
add column vb_load_85_pct_max_pto_power_vd_microns fw_ods.fw_num_dimid,
add column vb_load_85_pct_max_pto_power_hd_microns fw_ods.fw_num_dimid;
-- FTWET / FTDRY: field_perfm_
@@ -520,3 +543,29 @@ alter table fw_ods.fw_ods add column fuel_consumption_var_pct_lit_per_acr fw_ods
alter table fw_ods.fw_ods
add column tractor_hitch_ht_mm fw_ods.fw_num_metric,
add column tractor_hitch_type fw_ods.fw_text;
alter table fw_ods.fw_ods add column no_of_revolution_front fw_ods.fw_num_metric;
alter table fw_ods.fw_ods add column Lead_lag_ratio fw_ods.fw_num_metric;
alter table fw_ods.fw_ods add column Lead_lag_pct fw_ods.fw_num_metric;
alter table fw_ods.fw_ods add column Lead_lag_type fw_ods.fw_text;
alter table fw_ods.fw_ods_observations
add column test_date_year fw_ods.fw_num_dimid,
add column gear_used fw_ods.fw_text,
add column speed_rpm fw_ods.fw_num_dimid,
add column group_category fw_ods.fw_text;
alter table fw_ods.fw_ods_observations add column acceptance_criteria fw_ods.fw_text;
alter table fw_ods.fw_ods_observations add column remarks fw_ods.fw_text;