Commit 3ab1ea3
committed
fastapi-sqlalchemy-pg-catalog/init.sql: drop NOT EXISTS — script only runs on first init
Copilot's repeated note: /docker-entrypoint-initdb.d scripts run only
on first database init. On a stale data volume the script doesn't
run at all, so the NOT EXISTS guard couldn't help anyway. Simplified
to a plain INSERT and updated the comment to tell readers to recreate
the volume (docker compose down -v) if they want a deterministic
repro.
Signed-off-by: Akash Kumar <meakash7902@gmail.com>1 parent 7ae4d92 commit 3ab1ea3
1 file changed
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments