Skip to content

Commit

Permalink
go: add "strict" to table creation
Browse files Browse the repository at this point in the history
  • Loading branch information
azimut committed Apr 2, 2024
1 parent 0e36cfc commit fb9bfbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(
Expand Down

0 comments on commit fb9bfbf

Please sign in to comment.