mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-23 21:19:31 -06:00
Add backup_id column to executions methods
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
-- name: ExecutionsServiceCreateExecution :one
|
||||
INSERT INTO executions (status, message, path)
|
||||
VALUES (@status, @message, @path)
|
||||
INSERT INTO executions (backup_id, status, message, path)
|
||||
VALUES (@backup_id, @status, @message, @path)
|
||||
RETURNING *;
|
||||
|
||||
@@ -33,7 +33,8 @@ func (s *Service) RunExecution(ctx context.Context, backupID uuid.UUID) error {
|
||||
}
|
||||
|
||||
ex, err := s.CreateExecution(ctx, dbgen.ExecutionsServiceCreateExecutionParams{
|
||||
Status: "running",
|
||||
BackupID: backupID,
|
||||
Status: "running",
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user