KilnVM Live Labs /lab/atlas-schema-migrations
Step 1 of 3 Docs Claim This Sandbox
Unclaimed Preview Sandbox · Hosted by KilnVM (15-run evaluation cap). Maintain this tool? Claim & embed on your docs →

Safe Schema Migrations with Atlas

Lint destructive SQL migrations locally with Atlas on SQLite, replace a risky column drop with an additive migration, and verify schema apply.

Step 1 of 3

Catch a destructive migration with Atlas lint

/workspace/migrations holds an initial schema and a follow-up migration (20260101000002_drop_legacy.sql) that drops legacy_token directly.

Run Atlas migrate lint against an in-memory SQLite --dev-url and capture the DS103 error in /workspace/lint.txt:

bash
atlas migrate lint --env local --latest 1 > lint.txt 2>/dev/null || true; cat lint.txt