mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-22 18:37:43 +00:00
Whether the schema matches what the binary expects is answered by the migration registry, which lives under cmd/. common/ has never imported cmd/, and starting with this would put the shared layer behind the command layer for one check. Register instead, from where both are already in scope. A duplicate name panics rather than appending: two checks under one name make the failing one impossible to identify from the response body, and registering the same one twice is a wiring mistake better heard at start-up than never. The registered check is run through the same guard as the built-in ones, so one that panics fails its check rather than taking down the probe that asked.