Skip to content

wheels migrate up/down/info commands show success but perform no action #2474

@zainforbjs

Description

@zainforbjs

Describe the bug
The Wheels 4.0 CLI migration commands appear to complete successfully, but most commands do not actually perform any migration-related action.

Only the following command works correctly:

wheels migrate latest

The following commands:

wheels migrate up
wheels migrate down
wheels migrate info

display success messages but do not execute any actual migration behavior.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Wheels application with migrations
  2. Run migrations using:
    wheels migrate latest
  3. Verify migrations are applied successfully
  4. Try the following commands individually:
wheels migrate up
wheels migrate down
wheels migrate info
  1. Observe that:
  • success messages are displayed
  • no actual migration changes occur
  • no migration information is shown

Expected behavior
All migration commands should execute their respective operations correctly:

  • wheels migrate up
    • should run the next pending migration
  • wheels migrate down
    • should rollback the latest migration
  • wheels migrate info
    • should display migration status/information

Actual behavior

  • Commands display success output
  • No migration action is performed
  • Database state remains unchanged
  • info does not return expected migration details

Additional context

  • The migration system itself appears to work correctly
  • Migrations can be executed successfully through:
    • wheels migrate latest
    • the Wheels migrator interface/UI

This suggests the issue is specific to the Wheels 4.0 CLI command handling or command routing for:

  • up
  • down
  • info

Possible cause
The CLI may not be correctly passing or mapping migration subcommands internally, causing commands to exit successfully without invoking the actual migration operations.

Screenshots
Image

Image Image

Desktop:

  • OS: Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions