2023-03-19 14:18:11 +00:00
|
|
|
UPDATE project SET
|
2023-03-19 15:21:15 +00:00
|
|
|
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;
|