Skip to content
Snippets Groups Projects
Commit 5ef8a762 authored by Armand Bahi's avatar Armand Bahi
Browse files

Merge branch 'pre_prod' into evolution/2-mode-comparaison-2

parents 594f0c34 cb63318a
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
ALTER TABLE s_anc.v_controle OWNER TO u_vitis; ALTER TABLE s_anc.v_controle OWNER TO u_vitis;
CREATE OR REPLACE view s_anc.v_pretraitement as SELECT id_pretraitement, pretraitement.id_controle, ptr_type, ptr_volume, ptr_marque, ptr_materiau, ptr_pose, ptr_adapte, ptr_conforme_projet, ptr_dalle_repartition, ptr_renforce, ptr_verif_mise_en_eau, ptr_type_eau, ptr_reglementaire, ptr_destination, ptr_cloison, ptr_commentaire, ptr_im_distance, ptr_im_hydrom, ptr_im_dalle, ptr_im_renfor, ptr_im_puit, ptr_im_fixation, ptr_im_acces, ptr_et_degrad, ptr_et_real, ptr_vi_date, ptr_vi_justi, ptr_vi_entr, ptr_vi_bord, ptr_vi_dest, ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f,controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.pretraitement LEFT join s_anc.controle on pretraitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); CREATE OR REPLACE view s_anc.v_pretraitement as SELECT id_pretraitement, pretraitement.id_controle, ptr_type, ptr_volume, ptr_marque, ptr_materiau, ptr_pose, ptr_adapte, ptr_conforme_projet, ptr_dalle_repartition, ptr_renforce, ptr_verif_mise_en_eau, ptr_type_eau, ptr_reglementaire, ptr_destination, ptr_cloison, ptr_commentaire, ptr_im_distance, ptr_im_hydrom, ptr_im_dalle, ptr_im_renfor, ptr_im_puit, ptr_im_fixation, ptr_im_acces, ptr_et_degrad, ptr_et_real, ptr_vi_date, ptr_vi_justi, ptr_vi_entr, ptr_vi_bord, ptr_vi_dest, ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f,controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.pretraitement LEFT join s_anc.controle on pretraitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text);
ALTER TABLE s_anc.v_pretraitement OWNER TO u_vitis; ALTER TABLE s_anc.v_pretraitement OWNER TO u_vitis;
CREATE TABLE s_anc.version( version character varying(10) NOT NULL, build integer NOT NULL, date timestamp with time zone NOT NULL, active boolean, CONSTRAINT pk_version PRIMARY KEY (version))WITH ( OIDS=FALSE); CREATE TABLE s_anc.version( version character varying(100) NOT NULL, build integer NOT NULL, date timestamp with time zone NOT NULL, active boolean, CONSTRAINT pk_version PRIMARY KEY (version))WITH ( OIDS=FALSE);
ALTER TABLE s_anc.version OWNER TO u_vitis; ALTER TABLE s_anc.version OWNER TO u_vitis;
GRANT ALL ON TABLE s_anc.version TO u_vitis; GRANT ALL ON TABLE s_anc.version TO u_vitis;
GRANT ALL ON TABLE s_anc.version TO anc_admin; GRANT ALL ON TABLE s_anc.version TO anc_admin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment