Commit 36ea45b
fix(helm): run prisma db push on install only, not on every upgrade
Review question on PR #1384: db push ran on pre-install and pre-upgrade,
so a destructive schema change in the mounted checkout (dropped/renamed
column) would make db push exit non-zero and fail the whole helm upgrade.
Gate the db push on .Release.IsInstall so it only runs on first install;
upgrades leave the schema untouched (manual push if needed). The install
job still runs on upgrade for source sync + pnpm install + prisma generate
— only the schema-mutating step is install-only, so hot-reload of deps is
unaffected.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 81e75d7 commit 36ea45b
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
0 commit comments