From 09652176f97f11bc06f4c9b57a448e14744eac12 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sat, 24 May 2025 12:59:43 +0000
Subject: feat: Allow defaulting to reader mode when clicking on bookmarks.
 Fixes #662

---
 packages/db/drizzle/0048_add_user_settings.sql | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 packages/db/drizzle/0048_add_user_settings.sql

(limited to 'packages/db/drizzle/0048_add_user_settings.sql')

diff --git a/packages/db/drizzle/0048_add_user_settings.sql b/packages/db/drizzle/0048_add_user_settings.sql
new file mode 100644
index 00000000..8d55c1e1
--- /dev/null
+++ b/packages/db/drizzle/0048_add_user_settings.sql
@@ -0,0 +1,6 @@
+CREATE TABLE `userSettings` (
+	`userId` text PRIMARY KEY NOT NULL,
+	`bookmarkClickAction` text DEFAULT 'open_original_link' NOT NULL,
+	FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE cascade
+);--> statement-breakpoint
+INSERT INTO `userSettings` (`userId`, `bookmarkClickAction`) SELECT `id`, 'open_original_link' FROM `user`;
-- 
cgit v1.2.3-70-g09d2

