From 719594dfc73cf7a6214f57e1cd02f60f391837ea Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Mon, 18 Nov 2024 00:58:03 +0100 Subject: [PATCH] org-roam-db: Don't unnecessarily enable foreign keys support Starting with EmacSQL v4.1.0, `emacsql-sqlite-open' takes care of that. --- org-roam-capture.el | 2 +- org-roam-db.el | 3 +-- org-roam-log.el | 2 +- org-roam-migrate.el | 2 +- org-roam-mode.el | 2 +- org-roam.el | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/org-roam-capture.el b/org-roam-capture.el index 28a948c..e34f6e7 100644 --- a/org-roam-capture.el +++ b/org-roam-capture.el @@ -6,7 +6,7 @@ ;; URL: https://github.com/org-roam/org-roam ;; Keywords: org-mode, roam, convenience ;; Version: 2.2.2 -;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.0.0") (magit-section "3.0.0")) +;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.1.0") (magit-section "3.0.0")) ;; This file is NOT part of GNU Emacs. diff --git a/org-roam-db.el b/org-roam-db.el index 5e6c616..9176014 100644 --- a/org-roam-db.el +++ b/org-roam-db.el @@ -6,7 +6,7 @@ ;; URL: https://github.com/org-roam/org-roam ;; Keywords: org-mode, roam, convenience ;; Version: 2.2.2 -;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.0.0") (magit-section "3.0.0")) +;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.1.0") (magit-section "3.0.0")) ;; This file is NOT part of GNU Emacs. @@ -128,7 +128,6 @@ Performs a database upgrade when required." (let ((init-db (not (file-exists-p org-roam-db-location)))) (make-directory (file-name-directory org-roam-db-location) t) (let ((conn (emacsql-sqlite-open org-roam-db-location))) - (emacsql conn [:pragma (= foreign_keys ON)]) (puthash (expand-file-name (file-name-as-directory org-roam-directory)) conn org-roam-db--connection) diff --git a/org-roam-log.el b/org-roam-log.el index ad27195..6ffb4bd 100644 --- a/org-roam-log.el +++ b/org-roam-log.el @@ -6,7 +6,7 @@ ;; URL: https://github.com/org-roam/org-roam ;; Keywords: org-mode, roam, convenience ;; Version: 2.2.2 -;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.0.0") (magit-section "3.0.0")) +;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.1.0") (magit-section "3.0.0")) ;; This file is NOT part of GNU Emacs. diff --git a/org-roam-migrate.el b/org-roam-migrate.el index d8b0314..30d0e8f 100644 --- a/org-roam-migrate.el +++ b/org-roam-migrate.el @@ -6,7 +6,7 @@ ;; URL: https://github.com/org-roam/org-roam ;; Keywords: org-mode, roam, convenience ;; Version: 2.2.2 -;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.0.0") (magit-section "3.0.0")) +;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.1.0") (magit-section "3.0.0")) ;; This file is NOT part of GNU Emacs. diff --git a/org-roam-mode.el b/org-roam-mode.el index ef25036..b31ab21 100644 --- a/org-roam-mode.el +++ b/org-roam-mode.el @@ -6,7 +6,7 @@ ;; URL: https://github.com/org-roam/org-roam ;; Keywords: org-mode, roam, convenience ;; Version: 2.2.2 -;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.0.0") (magit-section "3.0.0")) +;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.1.0") (magit-section "3.0.0")) ;; This file is NOT part of GNU Emacs. diff --git a/org-roam.el b/org-roam.el index bcf9e10..a6b7a48 100644 --- a/org-roam.el +++ b/org-roam.el @@ -6,7 +6,7 @@ ;; URL: https://github.com/org-roam/org-roam ;; Keywords: org-mode, roam, convenience ;; Version: 2.2.2 -;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.0.0") (magit-section "3.0.0")) +;; Package-Requires: ((emacs "26.1") (dash "2.13") (org "9.4") (emacsql "4.1.0") (magit-section "3.0.0")) ;; This file is NOT part of GNU Emacs.