change db from sqlite3 to postgresql

This commit is contained in:
2025-01-07 09:32:57 +01:00
parent f719c73b46
commit 9302e982c6
20 changed files with 309 additions and 284 deletions

View File

@@ -0,0 +1,10 @@
-- +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