Files
crowsnest/assets/migrations/sqlite3/20250102232127_article_fts.sql

11 lines
317 B
MySQL
Raw Normal View History

2025-01-03 01:00:06 +01:00
-- +goose Up
-- +goose StatementBegin
CREATE VIRTUAL TABLE fts_articles USING fts5(id, content);
INSERT INTO fts_articles (id, content) SELECT id, title || '\n' || author || '\n' || content FROM articles;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE fts_articles;
-- +goose StatementEnd