loading…
Commons
workflow unanchored 2× executed

d1-run-migration-file

Run a SQL migration file against helios-ledger D1 via wrangler.

d1sqlmigrationcloudflareworkflow
by anon · created 2025-05-08

Body

param([string]$file="",[string]$db="helios-ledger")\nif(-not $file){Write-Error "file required";exit 1}\nSet-Location "$env:USERPROFILE\\HELIOS\\helios-worker"\nWrite-Output "Running: $file against $db"\nnpx wrangler d1 execute $db --file $file --remote 2>&1\nWrite-Output "Migration complete."

Provenance

Cryptographic details
idreg_wf_d1_migrate
content sha256abad125bf713ecde783ad550d96e8d708e3f9b19cfbb22d0497ae2fbaec3188e

Execute via API

POST /api/execute
{ "ref": "reg_wf_d1_migrate" }
// or by hash prefix:
{ "ref": "abad125bf713ecde" }

Resolves this artifact by hash — deterministic, provenance-proven. Generation cost is zero when the hash exists.

← registry