Skip to content

API Reference parrot.migrations.models

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

parrot.migrations.models

View source

Immutable migration metadata and safe reports.

Class MigrationConfigurationError

Invalid migration configuration; CLI exit code 3.

Class MigrationFile

Loaded immutable body/check pair with SHA256 values and sequence.

Fields:

Field Type Default Description
migration_set str
filename str
sequence int
sql str
check_sql str
checksum str
check_checksum str

Class MigrationItem

One file's APPLIED/PENDING/CHANGED state, postcondition result and safe diagnostic.

Fields:

Field Type Default Description
migration_set str
filename str
state Literal['APPLIED', 'PENDING', 'CHANGED']
postcondition_ok bool | None
diagnostic str | None

Class MigrationReport

Safe structured result; never stores credentials or raw driver errors.

Fields:

Field Type Default Description
items list[MigrationItem]
applied list[str]
failed list[str]
skipped list[str]
diagnostics list[str]
exit_code Literal[0, 1, 2, 3]

Class MigrationSet

Resource owner: name, package, resource_dir, and tuple of qualified target tables.

Fields:

Field Type Default Description
name str
package str
resource_dir str
tables tuple[str, ...]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally