mirror of
https://github.com/org-roam/org-roam
synced 2025-08-03 12:27:23 -05:00
remove primary key constraint on aliases table
this allows a node to have multiple aliases cc @myshevchuk
This commit is contained in:
@ -79,7 +79,7 @@ value like `most-positive-fixnum'."
|
|||||||
:type 'int
|
:type 'int
|
||||||
:group 'org-roam)
|
:group 'org-roam)
|
||||||
|
|
||||||
(defconst org-roam-db--version 14)
|
(defconst org-roam-db--version 15)
|
||||||
(defconst org-roam--sqlite-available-p
|
(defconst org-roam--sqlite-available-p
|
||||||
(with-demoted-errors "Org-roam initialization: %S"
|
(with-demoted-errors "Org-roam initialization: %S"
|
||||||
(emacsql-sqlite-ensure-binary)
|
(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)))
|
(:foreign-key [file] :references files [file] :on-delete :cascade)))
|
||||||
|
|
||||||
(aliases
|
(aliases
|
||||||
([(node-id :not-null :primary-key)
|
([(node-id :not-null)
|
||||||
alias]
|
alias]
|
||||||
(:foreign-key [node-id] :references nodes [id] :on-delete :cascade)))
|
(:foreign-key [node-id] :references nodes [id] :on-delete :cascade)))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user