Skip to content

Commit

Permalink
Merge pull request #34 from teksi/2024-05-29-lenght2-patch
Browse files Browse the repository at this point in the history
2024 05 29 lenght2 patch
  • Loading branch information
sjib authored Aug 10, 2024
2 parents c79deb9 + 7071f49 commit f35039f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions datamodel/changelogs/0001/03_tdh_db_sia405.sql
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ COMMENT ON COLUMN tdh_od.pipe_section.diameter_outer IS '';
COMMENT ON COLUMN tdh_od.pipe_section.nominal_diameter IS 'yyy_als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (eg. 1500/800) / als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (z.B. 1500/800) / comme TEXTE, parcequ''on a aussi des valeurs doubles (par example 1500/800)';
ALTER TABLE tdh_od.pipe_section ADD COLUMN length1 integer ;
COMMENT ON COLUMN tdh_od.pipe_section.length1 IS 'yyy_Laenge_abgewickelt / Laenge_abgewickelt / longueur développée';
ALTER TABLE tdh_od.pipe_section ADD COLUMN lenght2 integer ;
COMMENT ON COLUMN tdh_od.pipe_section.lenght2 IS 'yyy_Laenge_berechnet / Laenge_berechnet / longueur calculée';
ALTER TABLE tdh_od.pipe_section ADD COLUMN length2 integer ;
COMMENT ON COLUMN tdh_od.pipe_section.length2 IS 'yyy_Laenge_berechnet / Laenge_berechnet / longueur calculée';
ALTER TABLE tdh_od.pipe_section ADD COLUMN pipe_brand text;
ALTER TABLE tdh_od.pipe_section ADD CONSTRAINT ps_pipe_brand_length_max_40 CHECK(char_length(pipe_brand)<=40);
COMMENT ON COLUMN tdh_od.pipe_section.pipe_brand IS '';
Expand Down
2 changes: 1 addition & 1 deletion datamodel/changelogs/0001/09_tdh_dictionaries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ CREATE TABLE tdh_sys.dictionary_od_field (
INSERT INTO tdh_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (8005,8056,'pipe_section','diameter_outer','diameter_outer','DurchmesserAussen','Diametre_exterieur','zzz_DurchmesserAussen','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]',' millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,4000);
INSERT INTO tdh_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (8005,8059,'pipe_section','nominal_diameter','nominal_diameter','Nennweite','Largeur_nominale','larghezza_nominale','diametrul_nominal','yyy_als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (eg. 1500/800)','als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (z.B. 1500/800)','comme TEXTE, parcequ''on a aussi des valeurs doubles (par example 1500/800)','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(10)',NULL,'as TEXT, because sometimes also double values with slash inbetween eg. 500/800',NULL,'als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (1500/1000)',NULL,'En tant que TEXT, car peut contenir des valeurs doubles avec barre oblique (1500/1000)',NULL,'come TESTO, poiché in alcuni casi valori doppi con slash (1500/1000)',NULL,'rrr_als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (1500/1000)',NULL,NULL);
INSERT INTO tdh_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (8005,8061,'pipe_section','length1','length1','Laenge1','Longueur1','lunghezza1','lungime1','yyy_Laenge_abgewickelt','Laenge_abgewickelt','longueur développée','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimétre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,999999);
INSERT INTO tdh_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (8005,8062,'pipe_section','lenght2','lenght2','Laenge2','Longueur2','lunghezza2','lungime2','yyy_Laenge_berechnet','Laenge_berechnet','longueur calculée','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimétre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,999999);
INSERT INTO tdh_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (8005,8062,'pipe_section','length2','length2','Laenge2','Longueur2','lunghezza2','lungime2','yyy_Laenge_berechnet','Laenge_berechnet','longueur calculée','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimétre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,999999);
INSERT INTO tdh_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (8005,8065,'pipe_section','pipe_brand','pipe_brand','Rohrfabrikat','Fabrication_tube','zzz_Rohrfabrikat','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO tdh_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (8005,8067,'pipe_section','pipeline_quality','pipeline_quality','Rohrqualitaet','Qualite_tube','zzz_Rohrqualitaet','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO tdh_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (8005,8075,'pipe_section','installation_year','installation_year','Einbaujahr','Annee_de_construction','anno_costruzione','anul_instalarii','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint',NULL,' If unknown set lowest value of value range',NULL,'Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',NULL,'Si inconnu ajouter la plus bas valeur du domaine des valeurs',NULL,'Se sconosciuto, inserire valore minimo dell’intervallo di valori',NULL,'rrr_Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',1800,2100);
Expand Down

0 comments on commit f35039f

Please sign in to comment.