forked from qwat/qwat-data-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 1.4.0 SIRE
- Loading branch information
Showing
6 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
CREATE OR REPLACE VIEW qwat_ch_vd_sire.zone_pression AS | ||
SELECT | ||
pressurezone.id AS "ID_Num", | ||
NULL::text AS "Remarque", | ||
pressurezone.name AS "Nom_Descriptif", | ||
distributor.name AS "Nom_Distributeur", | ||
consumptionzone.qwat_ext_ch_vd_sire_pressure_load_type AS "Mise_En_Charge", | ||
consumptionzone.qwat_ext_ch_vd_sire_pressure_load_altitude AS "Altitude_Plan_De_Charge" | ||
FROM qwat_od.pressurezone | ||
JOIN qwat_od.distributor ON pressurezone.fk_distributor = distributor.id | ||
JOIN qwat_od.consumptionzone ON pressurezone.fk_consumptionzone = consumptionzone.id | ||
WHERE pressurezone.fk_distributor = 1; | ||
SELECT | ||
pressurezone.id AS "ID_Num", | ||
NULL::text AS "Remarque", | ||
pressurezone.name AS "Nom_Descriptif", | ||
distributor.name AS "Nom_Distributeur", | ||
consumptionzone.qwat_ext_ch_vd_sire_pressure_load_type AS "Mise_En_Charge", | ||
consumptionzone.qwat_ext_ch_vd_sire_pressure_load_altitude AS "Altitude_Plan_De_Charge" | ||
FROM qwat_od.pressurezone | ||
JOIN qwat_od.distributor ON pressurezone.fk_distributor = distributor.id | ||
JOIN qwat_od.consumptionzone ON pressurezone.fk_consumptionzone = consumptionzone.id | ||
WHERE pressurezone.fk_distributor = 1; | ||
|
||
GRANT SELECT, REFERENCES, TRIGGER ON TABLE qwat_ch_vd_sire.zone_pression TO qwat_viewer; | ||
GRANT ALL ON TABLE qwat_ch_vd_sire.zone_pression TO qwat_user; | ||
GRANT ALL ON TABLE qwat_ch_vd_sire.zone_pression TO qwat_manager; |