Skip to content

feat: scaffold migrations#4902

Draft
Pantani wants to merge 1 commit intomainfrom
feat/scaffold-migrations
Draft

feat: scaffold migrations#4902
Pantani wants to merge 1 commit intomainfrom
feat/scaffold-migrations

Conversation

@Pantani
Copy link
Collaborator

@Pantani Pantani commented Mar 11, 2026

Closes: #3843

@Pantani Pantani self-assigned this Mar 11, 2026
@github-actions github-actions bot added component:ci CI/CD workflow and automated jobs. component:templates component:configs component:cmd type:services Service-related issues. labels Mar 11, 2026
func scaffoldMigrationHandler(cmd *cobra.Command, args []string) error {
var (
moduleName = args[0]
migrationName = args[1]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't need to specify a migration name, this is effectively duplicate, the consensus version is the name. Basically what matter is the module name only.
Then we should be able to simply bump the ConsensusVersion and get the migrationVersion/consensusVersion that way (for the folder name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

INIT: Subcommand to Scaffold Migrations for Modules

2 participants