Skip to content

Commit

Permalink
Remove STRICT
Browse files Browse the repository at this point in the history
  • Loading branch information
j-baines committed Jul 15, 2024
1 parent aa42850 commit 55b124a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ const (
`installed INTEGER NOT NULL CHECK (installed IN (0, 1)),` +
`version TEXT NOT NULL,` +
`rhost TEXT NOT NULL,` +
`rport INTEGER NOT NULL CHECK (rport >= 0 AND rport <= 65535)) STRICT;`
`rport INTEGER NOT NULL CHECK (rport >= 0 AND rport <= 65535));`

httpCacheTable = `CREATE TABLE IF NOT EXISTS http_cache (` +
httpCacheTable = `CREATE TABLE IF NOT EXISTS http_cache(` +
`id INTEGER PRIMARY KEY AUTOINCREMENT,` +
`created INTEGER NOT NULL,` +
`rhost TEXT NOT NULL,` +
`rport INTEGER NOT NULL CHECK (rport >= 0 AND rport <= 65535),` +
`uri TEXT NOT NULL,` +
`data BLOB NOT NULL) STRICT;`
`data BLOB NOT NULL);`
)

func InitializeDB(name string) bool {
Expand Down

0 comments on commit 55b124a

Please sign in to comment.