From f674c19a67a954ce7d4f0ab1e120a788ebebd9d3 Mon Sep 17 00:00:00 2001 From: lasse Date: Tue, 27 May 2025 14:43:00 +0200 Subject: [PATCH] add init-db.sql --- .gitignore | 1 + init-db.sql | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 init-db.sql diff --git a/.gitignore b/.gitignore index eb1c087..c69b177 100644 --- a/.gitignore +++ b/.gitignore @@ -155,6 +155,7 @@ dist/ # PostgreSQL *.sql +!init-db.sql # Database dumps *.dump diff --git a/init-db.sql b/init-db.sql new file mode 100644 index 0000000..7affc00 --- /dev/null +++ b/init-db.sql @@ -0,0 +1,11 @@ +-- Optional database initialization script +-- This file will be executed when the PostgreSQL container starts for the first time + +-- Create extensions if needed +-- CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; + +-- You can add any initial database setup here +-- For example, creating additional users, setting permissions, etc. + +-- Note: Your FastAPI app with Alembic will handle the actual table creation +-- This file is mainly for any PostgreSQL-specific setup \ No newline at end of file