hugo-cms/sql/queries/targets.sql

12 lines
286 B
MySQL
Raw Normal View History

2025-01-27 04:45:53 +00:00
-- name: ListPublishTargetsOfRole :many
2025-01-31 22:42:32 +00:00
SELECT * FROM publish_targets WHERE site_id = $1 AND role = 'production';
2025-01-27 04:45:53 +00:00
-- name: InsertPublishTarget :one
2025-01-31 22:42:32 +00:00
INSERT INTO publish_targets (
2025-01-27 04:45:53 +00:00
site_id,
role,
target_type,
url,
target_ref
) VALUES ($1, $2, $3, $4, $5)
RETURNING id;