Commit 7ae4d92
committed
fastapi-sqlalchemy-pg-catalog/init.sql: clarify when NOT EXISTS actually matters
Copilot noted /docker-entrypoint-initdb.d scripts only run on first
database initialization, so the previous comment's framing ('re-run
against an existing volume') was misleading. Reworded to call out
the actual scenario: this is a single-shot insert on a clean volume,
and NOT EXISTS is defensive coverage for stale-volume reuse.
Signed-off-by: Akash Kumar <meakash7902@gmail.com>1 parent bd9cfc0 commit 7ae4d92
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
0 commit comments