Skip to content

Commit

Permalink
go: add some "not null" for url's fields
Browse files Browse the repository at this point in the history
  • Loading branch information
azimut committed Apr 4, 2024
1 parent ed90a06 commit ac3c9d9
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 @@ -38,12 +38,12 @@ func initDb() (*sql.DB, error) {
func initTables(db *sql.DB) error {
initStmt := `
pragma journal_mode = delete;
pragma page_size = 1024;
pragma page_size = 1024;
create table feeds (
id integer not null primary key,
title text,
url text,
url text not null,
description text
) strict;
Expand All @@ -52,7 +52,7 @@ func initTables(db *sql.DB) error {
feedid integer not null,
datemillis integer not null,
title text,
url text,
url text not null,
foreign key(feedid) references feeds(id)
) strict;
create index entriesindex on entries(feedid);
Expand Down

0 comments on commit ac3c9d9

Please sign in to comment.