Skip to content

Commit

Permalink
fix(schema): remove STRICT for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
TechCiel committed May 23, 2022
1 parent 90c9e04 commit f355bd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions whisper/core/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ CREATE TABLE post (
title TEXT NOT NULL DEFAULT '',
excerpt TEXT NOT NULL DEFAULT '',
content TEXT NOT NULL DEFAULT ''
) STRICT;
);

CREATE TABLE tag (
post TEXT NOT NULL REFERENCES post(slug) ON UPDATE CASCADE ON DELETE CASCADE,
tag TEXT NOT NULL,
PRIMARY KEY (post, tag) ON CONFLICT IGNORE
) STRICT;
);

CREATE TABLE meta (
post TEXT NOT NULL REFERENCES post(slug) ON UPDATE CASCADE ON DELETE CASCADE,
k TEXT NOT NULL,
v TEXT NOT NULL,
PRIMARY KEY (post, k) ON CONFLICT REPLACE
) STRICT;
);

CREATE INDEX idx_provide ON post(provide);
CREATE INDEX idx_public ON post(public);
Expand Down

0 comments on commit f355bd3

Please sign in to comment.