{ "contract_version": 1, "direction": "up", "outcome": "failed", "planned": [ 1790078460 ], "planned_keys": [ "1790078460" ], "error": "failed to apply migration 1790078460: failed to execute migration SQL: SQL execution failed: ERROR: canceling statement due to lock timeout (SQLSTATE 55P03)\nSQL: ALTER TABLE public.orders ALTER COLUMN currency SET DEFAULT 'USD'", "status": { "current_version": 1790078400, "applied_migrations": [ 1790078400 ], "applied_migration_keys": [ "1790078400" ], "pending_migrations": [ 1790078460, 1790078520, 1790078580, 1790078640, 1790078700, 1790078760, 1790078820, 1790078880 ], "pending_migration_keys": [ "1790078460", "1790078520", "1790078580", "1790078640", "1790078700", "1790078760", "1790078820", "1790078880" ], "out_of_order_migrations": [], "total_migrations": 9, "has_pending_changes": true, "dirty_revision": { "version": 1790078460, "description": "Default Currency", "state": "failed", "direction": "up", "applied": 0, "total": 1, "error": "failed to execute migration SQL: SQL execution failed: ERROR: canceling statement due to lock timeout (SQLSTATE 55P03)\nSQL: ALTER TABLE public.orders ALTER COLUMN currency SET DEFAULT 'USD'", "error_stmt": "ALTER TABLE public.orders ALTER COLUMN currency SET DEFAULT 'USD'", "execution_time": 207000000, "checksum": "a408d36a217e145b1b1b84abc2f39304103960a0808b1372236a69feea906b35", "applied_at": "2026-09-21T10:26:33.808362Z", "dirty": true }, "contract_version": 1, "migrations": [ { "version": 1790078400, "version_key": "1790078400", "description": "Create Orders", "checksum": "baa6de0d424a88f90a0f0b3ac6a59fd9af41634798356428b4e91c0d9cf8821c", "applied_checksum": "baa6de0d424a88f90a0f0b3ac6a59fd9af41634798356428b4e91c0d9cf8821c", "state": "applied" }, { "version": 1790078460, "version_key": "1790078460", "description": "Default Currency", "checksum": "a408d36a217e145b1b1b84abc2f39304103960a0808b1372236a69feea906b35", "state": "dirty" }, { "version": 1790078520, "version_key": "1790078520", "description": "Backfill Currency 1", "checksum": "a16ea7d33128923c716ba1d106ea90fad12d0a44daa39b8d6a370e5f21da3621", "state": "pending" }, { "version": 1790078580, "version_key": "1790078580", "description": "Backfill Currency 2", "checksum": "a4e20732687b5f8b83558b4b6aaf5ffa58db14655d4fa13deb38009500d23211", "state": "pending" }, { "version": 1790078640, "version_key": "1790078640", "description": "Backfill Currency 3", "checksum": "697f971e4385ecff487e69422da371435a5e9c71ba91f1c10833b8600b55488f", "state": "pending" }, { "version": 1790078700, "version_key": "1790078700", "description": "Backfill Currency 4", "checksum": "c72345d110338bd5bff25a17abefbfe7a38d3d64e663f82edbe5a060f432d7ec", "state": "pending" }, { "version": 1790078760, "version_key": "1790078760", "description": "Add Currency Check", "checksum": "f1338384d24ba9b53993b9d426265cfcf08d03dba0f149bda4efacabd9d5eeeb", "state": "pending" }, { "version": 1790078820, "version_key": "1790078820", "description": "Validate Currency", "checksum": "bd4d7c4f8fa09aaea226b449317fd61413084b35df93a4fc094e2fa813fd0e08", "state": "pending" }, { "version": 1790078880, "version_key": "1790078880", "description": "Require Currency", "checksum": "314c04a0654a8fdc4f082f3637baedbed2741da9ac4e79b5acdfb9165511cf8a", "state": "pending" } ], "current_version_key": "1790078460" } } === MIGRATE UP === Database: postgres://ptah:***@127.0.0.1:5432/checkout_local?sslmode=disable Dialect: postgres Migrations directory: /examples/migrations Migration directory format: auto Transaction mode: file Current version: 1790078400 Total migrations: 9 Pending migrations: 8 time=2026-09-21T10:26:33.808Z level=INFO msg="Migrating up" correlation_id=74f66e9a09599842 command=migrations.up currentVersion=1790078400 totalMigrations=9 time=2026-09-21T10:26:33.808Z level=INFO msg="Applying migration" correlation_id=74f66e9a09599842 command=migrations.up version=1790078460 description="Default Currency" error: error running migrations: failed to apply migration 1790078460: failed to execute migration SQL: SQL execution failed: ERROR: canceling statement due to lock timeout (SQLSTATE 55P03) SQL: ALTER TABLE public.orders ALTER COLUMN currency SET DEFAULT 'USD'