Skip to content

Execution history ​

Find out who ran a change, when, and which file broke it.

bash
noorm change history
Execution History: 4 records
  2026-10-20-order-status - success (10/21/2026, 1:40:29 AM)
  2026-10-21-invoice - failed (10/21/2026, 1:40:03 AM)
  2026-10-20-order-status - reverted (10/21/2026, 1:40:03 AM)
  2026-10-19-sales-order - success (10/21/2026, 1:40:03 AM)

Newest first, one line per operation. The first line is the revert of 2026-10-20-order-status. The third is its original apply, now flagged reverted. The text omits direction, and --json carries it.

What does noorm record? ​

Each operation is one change row, with one executions row per file that was not already applied:

Rows also carry who ran it (Name <email>), when, how long, a checksum, and the error text. MySQL and SQLite name the tables __noorm_change__ and __noorm_executions__. Execution lists every column.

change_typeWritten byIn change history
changechange run, ff, next, revert, rewindyes
buildrun buildno, TUI only
runrun file, run dir, run filesno, TUI only

A build or run where every file is unchanged writes no operation.

Which file broke the change? ​

bash
noorm change history-detail 2026-10-24-order-line
• log  History for: 2026-10-24-order-line (1 operation(s))
• log  
  [15] change — failed at 10/21/2026, 1:46:16 AM by Dana Reyes <dana@example.com>
• log         duration: 27ms
• log         error: 002_order-line-index.sql: [Err 1] no such column: nope
• log      • 001_order-line.sql — success | 2ms
• log      • 002_order-line-index.sql — failed | 1ms | error: [Err 1] no such column: nope
• log      • 003_line-index.sql — skipped | skipped: 002_order-line-index.sql failed: [Err 1] no such column: nope

[15] is the operation id. The failing file carries the database's error, and every file after it is skipped with the failure as the reason. After you fix 002 and run noorm change run 2026-10-24-order-line, a second operation lists only 002 and 003. File 001 already passed, so it leaves no row.

File statusTUIMeaning
success[OK]ran without error
failed[ERR]threw an error
skipped[-]an earlier file failed, so this one was never reached

--count sets how many operations to show, default 10. How to retry is in Forward and revert.

How do I read history in the TUI? ​

Press g from home, then h. TUI shows the screens.

ScreenShowsKeys
Historythe latest 200 operations of every type, with totals by typeEnter opens files, e shows the full error, Esc goes back
File executionsone operation's files, with path, checksum, and error or skip reasonEnter shows the full error, Esc goes back

Rows carry [OK] for success and [ERR] for any other status, and a type tag: [CHANGESET], [BUILD], or [RUN]. Times show as 2 hours ago.

How do I script against history? ​

bash
noorm change history --json --count 100
json
{
    "success": true,
    "history": [
        {
            "id": 13,
            "name": "2026-10-23-payment",
            "direction": "change",
            "status": "success",
            "executedAt": "2026-10-21T05:41:50.000Z",
            "executedBy": "Dana Reyes <dana@example.com>",
            "durationMs": 19,
            "errorMessage": null,
            "checksum": "73fbc0894afc..."
        }
    ]
}

--count defaults to 20 here. executedAt is ISO UTC. The text form prints local time. change history-detail <name> --json returns each operation with its file records.

What bites ​

SymptomCauseFix
A failed change leaves no history on PostgreSQLOne transaction rolls back the DDL and the history rows togetherRead the error from the failing command (Forward and revert)
An entry named __reset__db teardown records itself, with the drop summary in errorMessageNone. It marks where changes went stale
[ERR] on a reverted or stale row in the TUI[OK] means success onlyCheck change history --json or change list for the exact status
change history-detail prints nothing into a pipeThe text goes through the logger to stderrUse --json, or redirect with 2>&1
History from another environment is missingEach config keeps its own historyPass -c <config>

Next ​