Skip to content
Snippets Groups Projects
Commit cca8be8a authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #8887: added sap_id column to view

parent 7b2c1b4b
No related branches found
No related tags found
No related merge requests found
...@@ -299,10 +299,9 @@ ALTER TABLE resource_allocation.resource_claim_extended_view ...@@ -299,10 +299,9 @@ ALTER TABLE resource_allocation.resource_claim_extended_view
COMMENT ON VIEW resource_allocation.resource_claim_extended_view COMMENT ON VIEW resource_allocation.resource_claim_extended_view
IS 'extended view on resource_claim table, including resource_claim_status.name and the resource itself'; IS 'extended view on resource_claim table, including resource_claim_status.name and the resource itself';
CREATE OR REPLACE VIEW resource_allocation.resource_claim_property_view AS CREATE OR REPLACE VIEW resource_allocation.resource_claim_property_view AS
SELECT rcp.id, rcp.resource_claim_id, rcp.value, rcp.type_id, SELECT rcp.id, rcp.resource_claim_id, rcp.value, rcp.type_id,
rcpt.name AS type_name rcpt.name AS type_name, rcp.sap_id
FROM resource_allocation.resource_claim_property rcp FROM resource_allocation.resource_claim_property rcp
JOIN resource_allocation.resource_claim_property_type rcpt ON rcpt.id = rcp.type_id; JOIN resource_allocation.resource_claim_property_type rcpt ON rcpt.id = rcp.type_id;
ALTER TABLE resource_allocation.resource_claim_property_view ALTER TABLE resource_allocation.resource_claim_property_view
......
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