script untaint
Record a RUN ONCE script as executed without running it, so later plans
skip it. The recorded entry is indistinguishable from a real execution — the same name and body hash an apply would have
written, taken from the script’s declaration in your .sql files.
nschema script untaint seed-usersThe main use is rebuilding lost state: refresh reconstructs
the schema snapshot from the live database, but it can’t know which scripts already ran. Untaint each one that has.
It’s also the way to adopt a script whose effect already exists (e.g. the role it creates was made by hand).
Untainting an already-recorded script is refused rather than silently overwriting its record. To accept a changed body
without running it, taint first, then untaint.
The change runs under the state lock.
Arguments
Section titled “Arguments”name(required) — the script’s declared name.
Options
Section titled “Options”--no-lock— untaint without acquiring the state lock. You take responsibility for preventing concurrent runs.