aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/db/queries/feeds.sql
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-10-27 03:00:27 +0900
committernsfisis <nsfisis@gmail.com>2025-10-27 03:00:27 +0900
commitba1e0c904f810193f25d4f88cc2bb168f1d625fe (patch)
tree87171f92c37bbe822ef5e4649c74dd7e949d4378 /backend/db/queries/feeds.sql
parentc1c7fa92e31f4d89fb68133a1c64a87f762dda6e (diff)
downloadfeedaka-ba1e0c904f810193f25d4f88cc2bb168f1d625fe.tar.gz
feedaka-ba1e0c904f810193f25d4f88cc2bb168f1d625fe.tar.zst
feedaka-ba1e0c904f810193f25d4f88cc2bb168f1d625fe.zip
feat(backend): Make feeds.user_id column non-nullHEADmain
Diffstat (limited to 'backend/db/queries/feeds.sql')
-rw-r--r--backend/db/queries/feeds.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/db/queries/feeds.sql b/backend/db/queries/feeds.sql
index 3b5b882..9725252 100644
--- a/backend/db/queries/feeds.sql
+++ b/backend/db/queries/feeds.sql
@@ -10,8 +10,8 @@ WHERE is_subscribed = 1
ORDER BY id;
-- name: CreateFeed :one
-INSERT INTO feeds (url, title, fetched_at)
-VALUES (?, ?, ?)
+INSERT INTO feeds (url, title, fetched_at, user_id)
+VALUES (?, ?, ?, ?)
RETURNING *;
-- name: UpdateFeedMetadata :exec