35 lines
697 B
SQL
35 lines
697 B
SQL
UPDATE project SET
|
|
title = $2,
|
|
description = $3,
|
|
realtor_id = $4,
|
|
media = $5,
|
|
project_condition = $6,
|
|
project_type = $7,
|
|
project_state = $8,
|
|
country = $9,
|
|
city = $10,
|
|
district = $11,
|
|
admin_tag = $12,
|
|
floors = $13,
|
|
finish_date = $14,
|
|
order_index = $15,
|
|
last_updated = $16
|
|
WHERE id = $1
|
|
RETURNING
|
|
id,
|
|
title,
|
|
description,
|
|
realtor_id,
|
|
media as "media: _",
|
|
project_condition as "project_condition: _",
|
|
project_type as "project_type: _",
|
|
project_state as "project_state: _",
|
|
country,
|
|
city,
|
|
district,
|
|
admin_tag,
|
|
floors,
|
|
finish_date,
|
|
order_index,
|
|
time_created,
|
|
last_updated; |