Skip to content

Migration Tests

There is no internal/migration/*_test.go.

Automated coverage:

  • TestMigrationRegistryEmptyBehavior in internal/command/command_test.go
  • Empty registry prints no migrations to apply and returns success

Production Application.RunMigrate is not empty. It registers:

  • 20260806120000_workorder_indexes
  • 20260806180000_alarm_read_indexes
  • 20260806220000_idempotency_archive_indexes

Those Up functions are not unit-tested. Windows Native live E2E historically recorded migrations as PASS (forward apply). Migration rollback is not performed on application rollback.

Do not document an empty production registry.