Files
book_library_server/migrations/20260116092203_create_sources_table.sql
Bulat Kurbanov c60aa8685b 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
2026-01-16 10:28:05 +01:00

6 lines
133 B
SQL

-- Create sources table
CREATE TABLE IF NOT EXISTS sources (
id SMALLSERIAL PRIMARY KEY,
name VARCHAR(32) NOT NULL UNIQUE
);