From 1bbc20cfa80cfdb10309d0ca798e88162a7e47ab Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Mon, 3 May 2021 11:37:00 +0800 Subject: [PATCH] remove primary key constraint on aliases table this allows a node to have multiple aliases cc @myshevchuk --- org-roam-db.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org-roam-db.el b/org-roam-db.el index 5291aef..22d6372 100644 --- a/org-roam-db.el +++ b/org-roam-db.el @@ -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)))