From fb9bfbf743a0751abea4aec1965bdbf3ca0f3047 Mon Sep 17 00:00:00 2001 From: azimut Date: Tue, 2 Apr 2024 12:05:37 -0300 Subject: [PATCH] go: add "strict" to table creation --- backend/src/db.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/db.go b/backend/src/db.go index c0e9300..9df1713 100644 --- a/backend/src/db.go +++ b/backend/src/db.go @@ -45,7 +45,7 @@ func initTables(db *sql.DB) error { title text, url text, description text - ); + ) strict; create table entries ( id integer not null primary key, @@ -54,14 +54,14 @@ func initTables(db *sql.DB) error { title text, url text, foreign key(feedid) references feeds(id) - ); + ) strict; create index entriesindex on entries(feedid); create table entries_content ( entriesid integer not null, content text, foreign key(entriesid) references entries(id) - ); + ) strict; create index entriescindex on entries_content(entriesid); create virtual table search using fts5(