mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-02-11 06:38:27 -06:00
6 lines
123 B
SQL
6 lines
123 B
SQL
-- name: BackupsServiceToggleIsActive :one
|
|
UPDATE backups
|
|
SET is_active = NOT is_active
|
|
WHERE id = @backup_id
|
|
RETURNING *;
|