com um clique
db-dry-run
Execute migration inside BEGIN…ROLLBACK to catch syntax/ordering errors
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Execute migration inside BEGIN…ROLLBACK to catch syntax/ordering errors
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Execute story development with selectable automation modes to accommodate different developer preferences, skill levels, and story complexity.
Set up a Kord-aligned documentation baseline (no legacy frameworks)
Create Next Story Task methodology and workflow
Validate Next Story Task methodology and workflow
advanced-elicitation methodology and workflow
No checklists needed - this task facilitates brainstorming sessions, validation is through user interaction methodology and workflow
| name | db-dry-run |
| description | Execute migration inside BEGIN…ROLLBACK to catch syntax/ordering errors |
| agent | architect |
| subtask | false |
Execute migration inside BEGIN…ROLLBACK to catch syntax/ordering errors
Parameter:* mode (optional, default: interactive)
Purpose:* Definitive pass/fail criteria for task completion
Checklist:*
acceptance-criteria:
- [ ] Data persisted correctly; constraints respected; no orphaned data
type: acceptance-criterion
blocker: true
validation: |
Assert data persisted correctly; constraints respected; no orphaned data
error_message: "Acceptance criterion not met: Data persisted correctly; constraints respected; no orphaned data"
Strategy:* retry
Common Errors:*
Error:* Connection Failed
Error:* Query Syntax Error
Error:* Transaction Rollback
path (string): Path to SQL migration fileAsk user to confirm:
{path}Run migration in transaction that will be rolled back:
psql "$SUPABASE_DB_URL" -v ON_ERROR_STOP=1 <<'SQL'
BEGIN;
\echo 'Starting dry-run...'
\i {path}
\echo 'Dry-run completed successfully - rolling back...'
ROLLBACK;
SQL
If successful:*
✓ Dry-run completed without errors
✓ Migration syntax is valid
✓ No dependency or ordering issues detected
If failed:*
❌ Dry-run failed
Error: [error message]
Line: [line number if available]
Fix the migration and try again
snapshot pre_migrationapply-migration {path}smoke-testCommon errors and fixes:
"relation does not exist"
"function does not exist"
"syntax error"