change db from sqlite3 to postgresql
This commit is contained in:
10
assets/migrations/sqlite3/20250102232127_article_fts.sql
Normal file
10
assets/migrations/sqlite3/20250102232127_article_fts.sql
Normal 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
|
||||
Reference in New Issue
Block a user