Skip to content
Fourohtwo

code.halowerk.com/v1/ddl-diff-migrate

Compare two PostgreSQL DDL versions and get an ordered, lock-aware migration script: new tables, columns, type, default and NOT NULL changes, keys, foreign keys, checks and indexes. Parses old and new DDL (CREATE TABLE, CREATE INDEX and pg_dump-style ALTER TABLE ... ADD CONSTRAINT) and diffs tables, columns, constraints and indexes.

BaseAnswering
POSThttps://code.halowerk.com/v1/ddl-diff-migrate

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://code.halowerk.com/v1/ddl-diff-migrate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"new_ddl":"CREATE TABLE users (id bigint PRIMARY KEY, email text NOT NULL, name text);\nCREATE INDEX users_email_idx ON users (email);","old_ddl":"CREATE TABLE users (id bigint PRIMARY KEY, email text NOT NULL);"}),
});
console.log(await res.json());

Example input

{
  "new_ddl": "CREATE TABLE users (id bigint PRIMARY KEY, email text NOT NULL, name text);\nCREATE INDEX users_email_idx ON users (email);",
  "old_ddl": "CREATE TABLE users (id bigint PRIMARY KEY, email text NOT NULL);"
}