remove primary key constraint on aliases table

this allows a node to have multiple aliases cc @myshevchuk
This commit is contained in:
Jethro Kuan
2021-05-03 11:37:00 +08:00
parent de94212cdd
commit 1bbc20cfa8

View File

@ -79,7 +79,7 @@ value like `most-positive-fixnum'."
:type 'int
:group 'org-roam)
(defconst org-roam-db--version 14)
(defconst org-roam-db--version 15)
(defconst org-roam--sqlite-available-p
(with-demoted-errors "Org-roam initialization: %S"
(emacsql-sqlite-ensure-binary)
@ -153,7 +153,7 @@ SQL can be either the emacsql vector representation, or a string."
(:foreign-key [file] :references files [file] :on-delete :cascade)))
(aliases
([(node-id :not-null :primary-key)
([(node-id :not-null)
alias]
(:foreign-key [node-id] :references nodes [id] :on-delete :cascade)))