diff options
| author | unwox <me@unwox.com> | 2025-06-16 22:16:40 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-06-16 22:16:40 +0600 |
| commit | 43a3ad32f9a17b23f211f61c28e37296ac4447f9 (patch) | |
| tree | 07a589e96654f81d4745609df61a635e9d724df2 /bin/fetch.fnl | |
| parent | 612877d9ed884f333cc407ef2046bbb2604db3c2 (diff) | |
move tags from filter onto a separate page
Diffstat (limited to 'bin/fetch.fnl')
| -rw-r--r-- | bin/fetch.fnl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/fetch.fnl b/bin/fetch.fnl index 583b48a..bc7a827 100644 --- a/bin/fetch.fnl +++ b/bin/fetch.fnl @@ -60,10 +60,11 @@ CREATE TABLE IF NOT EXISTS product_tags( product TEXT NOT NULL REFERENCES products(url), - tag DATETIME NOT NULL REFERENCES tags(title) + tag TEXT NOT NULL REFERENCES tags(title) ); CREATE UNIQUE INDEX IF NOT EXISTS product_tags_idx ON product_tags(product, tag); + CREATE INDEX IF NOT EXISTS product_tags_tag_idx ON product_tags(tag); CREATE TABLE IF NOT EXISTS tags( title TEXT NOT NULL PRIMARY KEY, |
