server: run DB migrations on startup

This commit is contained in:
2024-12-16 19:21:58 -08:00
parent 092d5781ca
commit e36f4f97f9
3 changed files with 3 additions and 0 deletions

View File

@@ -0,0 +1 @@
DROP INDEX IF EXISTS post_summary_idx;

View File

@@ -0,0 +1 @@
CREATE INDEX post_summary_idx ON post USING GIN (to_tsvector('english', summary));