mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
database: Replace existing entries in Refs.
* guix/store/database.scm (add-reference-sql): Add "OR REPLACE".
This commit is contained in:
parent
4bd86f0d62
commit
122a6cad7d
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ (define* (update-or-insert db #:key path deriver hash nar-size time)
|
|||
(last-insert-row-id db)))))
|
||||
|
||||
(define add-reference-sql
|
||||
"INSERT INTO Refs (referrer, reference) VALUES (:referrer, :reference);")
|
||||
"INSERT OR REPLACE INTO Refs (referrer, reference) VALUES (:referrer, :reference);")
|
||||
|
||||
(define (add-references db referrer references)
|
||||
"REFERRER is the id of the referring store item, REFERENCES is a list
|
||||
|
|
Loading…
Reference in a new issue