IntersectMBO / IntersectMBO/cardano-db-sync

cardano-db-tool: are `create-migration` and `validate-address-balance` intended to stay unimplemented after the Hasql rewrite?

Open
#2,165 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Haskell
Stars
318
Forks
168
PR merge metrics
No merged PRs in 30d

Description

# [QUESTION] cardano-db-tool: are `create-migration` and `validate-address-balance` intended to stay unimplemented after the Hasql rewrite?

**Type:** Question / clarification (not filed as a bug - likely known WIP).

**Affected:** cardano-db-tool 13.7.2.1 (verified at HEAD).

Two subcommands are live no-op stubs after the Persistent -> Hasql rewrite:

## `create-migration`
```
Warning: createMigration not implemented for Hasql. Manual migration creation required.
No migration needed.
```
- `cardano-db/src/Cardano/Db/Migration.hs:221`, called from `cardano-db-tool/app/cardano-db-tool.hs:74`

## `validate-address-balance`
```
Found N snapshots. Ledger validation not yet reimplemented for consensus snapshot format.
```
- `cardano-db-tool/src/Cardano/DbTool/Validate/Ledger.hs:41`

## Questions
1. Are these planned to be reimplemented, or intentionally retired on the Hasql line?
2. If retired, should they be removed from the CLI (rather than printing a stub) and/or documented as unavailable?
3. `create-migration` is a dev-only helper; is manual migration authoring now the expected workflow (worth a doc note if so)?

Contributor guide

Open the contributing guide

Research direction

Read cardano-db/src/Cardano/Db/Migration.hs:221 and its call from cardano-db-tool/app/cardano-db-tool.hs:74, then inspect cardano-db-tool/src/Cardano/DbTool/Validate/Ledger.hs:41. Confirm whether each command is planned, retired, or intentionally manual-only. Done requires a maintainer decision and corresponding CLI removal or documentation scope, rather than implementing an unspecified behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, postgresql
Domain
cli, databases
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.