Commit 8b86cd7
authored
fix: stop the schedule seed overwriting operator edits (#2951)
#2848 changed the seed's conflict clause to DO UPDATE SET command so the
46 existing rows would migrate from `pnpm hardhat <task>` to the new
`pnpm exec tsx tasks/run.ts <task>` invocation. Seeds re-run on every
runner boot, so that also silently overwrote parameters operators had set
in the admin UI: on 2026-07-27 the deploy reset all 46 rows to stock
defaults, losing the flags on stake_validator and remove_validator.
The migration it was added for has now completed — the seed applied on
the 23:15:59Z boot, so every row already carries the tsx invocation.
Reverting to DO NOTHING therefore loses nothing and stops future deploys
from clobbering operator state. cron_expr, enabled and signer_override
were never in the clause and were unaffected throughout.
Also drop the duplicate seed application in runner.ts: runContainer
already applies every migrations/seed_*.sql before starting the
scheduler, so this ran the same file twice per boot and bypassed the
client-side seed validation.1 parent a8de78d commit 8b86cd7
2 files changed
Lines changed: 6 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | 2 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
10 | 4 | | |
11 | 5 | | |
12 | 6 | | |
13 | 7 | | |
14 | 8 | | |
15 | 9 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
30 | 14 | | |
31 | 15 | | |
32 | 16 | | |
| |||
0 commit comments