jl-backend-rs/sql/project/update.sql

30 lines
600 B
SQL

UPDATE project SET
project_state = $1,
project_type = $2,
project_condition = $3,
agent_id = $4,
location_id = $5,
title = $6,
description = $7,
admin_tag = $8,
finish_date = $9,
floors = $10,
media = $11,
last_updated = $12
WHERE id = $13
RETURNING
id,
project_state as "project_state: _",
project_type as "project_type: _",
project_condition as "project_condition: _",
agent_id,
location_id,
title,
description,
admin_tag,
finish_date,
floors,
media as "media: _",
time_created,
last_updated;