mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2026-03-03 07:00:51 +01:00
Add DB migrations and run them on startup
Enable sqlx "migrate" feature and add SQL migrations to create the database schema: pg_trgm extension, sources, genres, authors, sequences, books, junction tables, annotations, and supporting indexes
This commit is contained in:
2
migrations/20260116092202_create_extensions.sql
Normal file
2
migrations/20260116092202_create_extensions.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- Create pg_trgm extension for trigram-based text search
|
||||
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
||||
Reference in New Issue
Block a user