API & MCP

Everything a person can do on Opsdeck Schema Diff & Migration Generator (PostgreSQL, MySQL, SQLite), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Opsdeck Schema Diff & Migration Generator (PostgreSQL, MySQL, SQLite)

Paste the current and the new CREATE TABLE / CREATE INDEX / ALTER TABLE statements: the tool reads both into a schema model, lists every change per table and writes an ordered migration script for PostgreSQL, MySQL/MariaDB or SQLite plus the reverse (rollback) script. Dropped tables and columns, narrowed types, new NOT NULL, unique, foreign-key and check constraints are flagged. Both scripts are verified by applying them to the model. It is the schema diff of the Opsdeck Database desk.

Inputs of Opsdeck Schema Diff & Migration Generator (PostgreSQL, MySQL, SQLite)
FieldTypeDefaultDescription
sourcetextarea"-- Shop schema, version 1\nCREATE TABLE customers (\n id integer PRIMARY KEY,\Current schema (DDL). CREATE TABLE, CREATE INDEX and ALTER TABLE statements of the version that is deployed now.
targettextarea"-- Shop schema, version 2\nCREATE TABLE customers (\n id integer PRIMARY KEY,\New schema (DDL). The version you want to migrate to.
dialectselect (postgresql, mysql, sqlite)"postgresql"SQL dialect
renamestextarea—Rename hints (optional). A diff cannot tell a rename from drop + add. One hint per line keeps the data: table.old -> new for a column, old -> new for a table.

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "opsdeck-schema-diff": { "type": "http", "url": "https://opsdeckschemadiff.usefulweb.site/mcp" }
  }
}