engine icon indicating copy to clipboard operation
engine copied to clipboard

Unable to Rollback Migrations in Contember

Open NotSugat opened this issue 1 year ago • 1 comments

I am experiencing an issue with rolling back migrations in Contember. Currently, there seems to be no direct command to rollback a specific migration, which complicates the process of reverting changes.

Steps Taken:

  1. Attempted Rollback Using Available Commands:

    • I tried to use various Contember commands like migrations:execute, migrations:rebase, and migrations:status, but none provided an option to directly rollback a specific migration.
  2. Manually Created Revert Migrations:

    • As a workaround, I created new migration files to manually revert the changes introduced by previous migrations. However, this approach is cumbersome and error-prone.

Issue Details:

  • I need to revert the changes made by specific migrations without having to manually write new revert migrations.
  • Example migrations I need to rollback:
    • 2024-08-26-080246-add-delivery-date-order

Expected Behavior:

  • A command or feature within Contember that allows for the rollback of specific migrations, reverting their effects automatically.

Additional Information:

  • I have explored all relevant documentation and commands, but there appears to be no built-in functionality for this purpose.

Request:

  • Guidance on how to properly rollback specific migrations.
  • If this feature is not currently available, a feature request to include migration rollback functionality in Contember would be appreciated.

Thank you.

NotSugat avatar Aug 26 '24 08:08 NotSugat