{"slug": "migratrom-schema-migrations-you-can-trust-your-agent-to-write", "title": "Migratrom: Schema migrations you can trust your agent to write", "summary": "Migratrom, a new open-source tool for PostgreSQL and SQLite, enables developers to write typed, self-verifying database schema migrations in their application language, with idempotent operations, tamper-evident history, and DAG-based ordering. The tool supports JavaScript (Bun, Node, Deno) and Swift runtimes, aiming to make schema changes as reliable as application code.", "body_md": "DB schema migrations you can trust your agent to write.\n\nMigratrom turns schema changes into typed, self-verifying operations for PostgreSQL and SQLite. Write migrations in your application language, prove each change, and keep applied history tamper-evident.\n\n## Why Migratrom?\n\n### Typed, not textual\n\nSchema changes are typed values in your language, not SQL files with hand-written up/down scripts. Refactor and review them like any other code.\n\n### Idempotent by construction\n\nEvery operation carries a postcheck: a boolean SQL probe that proves whether the change already exists. Re-running a migration batch is always safe.\n\n### Tamper-evident history\n\nA SHA-256 checksum is stored with each applied migration. Editing the body of an already-applied migration is rejected with no silent drift.\n\n### DAG ordering\n\nMigrations form a parent/child graph. The engine validates the graph and applies pending migrations in dependency order.\n\n### Multi-runtime\n\nJavaScript supports Bun, Node, and Deno. Swift supports Swift 6.2+ with PostgresNIO or SQift. Same concepts, idiomatic implementations.\n\n### Multi-dialect\n\nPostgreSQL and SQLite ship built in. Dialect selection is always explicit, so you always know which SQL you're generating.\n\n## Install\n\n**JavaScript / TypeScript**\n\n```\nbun add migratrom\n# or\nnpm install migratrom\n```\n\n**Swift** - add to `Package.swift`\n\n:\n\n```\n.package(url: \"https://github.com/migratrom/migratrom.swift\", from: \"0.1.0\")\n```\n\n", "url": "https://wpnews.pro/news/migratrom-schema-migrations-you-can-trust-your-agent-to-write", "canonical_source": "https://migratrom.org/", "published_at": "2026-06-29 12:11:56+00:00", "updated_at": "2026-06-29 12:22:15.747070+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Migratrom", "PostgreSQL", "SQLite", "Bun", "Node", "Deno", "Swift"], "alternates": {"html": "https://wpnews.pro/news/migratrom-schema-migrations-you-can-trust-your-agent-to-write", "markdown": "https://wpnews.pro/news/migratrom-schema-migrations-you-can-trust-your-agent-to-write.md", "text": "https://wpnews.pro/news/migratrom-schema-migrations-you-can-trust-your-agent-to-write.txt", "jsonld": "https://wpnews.pro/news/migratrom-schema-migrations-you-can-trust-your-agent-to-write.jsonld"}}