11 lines
317 B
SQL
11 lines
317 B
SQL
-- +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
|