CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/atlas-migrations

Authors and runs Atlas database schema migrations - declarative HCL or SQL schema definition with `atlas schema apply` for desired-state apply OR `atlas migrate diff` to generate versioned migrations against a dev DB; `atlas migrate apply` to deploy; `atlas migrate lint` to flag destructive / locking / data-loss patterns; `atlas migrate hash` to detect tampering. Supports PostgreSQL, MySQL, SQL Server, ClickHouse, SQLite, MariaDB, Snowflake, Oracle, Redshift, Spanner, CockroachDB, Databricks. Use when the user wants Terraform-style declarative DB schema management or modern SQL-first migration linting beyond Flyway / Liquibase.

68

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

atlas-caveats.mdreferences/

Atlas migration anti-patterns and limitations

Reference catalogue for the atlas-migrations skill. Each anti-pattern maps to a fix; each limitation names a fallback.

Anti-patterns

Anti-patternWhy it failsFix
Edit a migration after it's been applied to staging/prodatlas migrate apply fails on hash mismatchAdd a new migration that adjusts
Skip --dev-urlAtlas can't compute diff; commands fail or produce wrong outputAlways pass --dev-url (Steps 3, 4, 6)
Use declarative schema apply directly to productionNo audit trail of applied changesUse versioned mode in production (Step 4)
Skip atlas migrate lint in CIDestructive migrations slip through reviewAlways lint in CI (Step 8)
atlas migrate hash after every edit (without team review)Defeats integrity checkHash sync only after intentional edit + team review

Limitations

  • Some DBMS-specific features (e.g., Oracle PL/SQL packages, PostgreSQL extension management) have limited HCL support - fall back to SQL schema for those.
  • Lint rules are general-purpose; team-specific policies (e.g., "no DROP TABLE without DBA approval") need adversarial review on top.
  • --dev-url requires a real DBMS instance (or Docker) - Atlas cannot diff schemas without one.
  • Atlas Cloud (managed plan visualization) is paid; OSS covers the CLI workflow.

SKILL.md

tile.json