Skip to content

On Magento 2.3.2, setup:upgrade command removes tables of disabled modules #24926

@staradzinau

Description

@staradzinau

Preconditions (*)

  1. Magento 2.3.2 & 2.3-develop, 2.3.2-p1 (CE or EE- doesn't matter)
  2. At least one installed module, which uses declarative schema

Steps to reproduce (*)

  1. Disable module, which uses declarative schema, using console command (module:disable). For example, native Magento_ReleaseNotification extension
  2. Run setup:upgrade command
  3. Check in the database, tables of the disabled module from the first step (for Magento_ReleaseNotification - that's the only table 'release_notification_viewer_log')

Expected result (*)

  1. Tables of the disabled module have been already removed

Actual result (*)

  1. The database still contains tables of the disabled module, with all data.
  2. See magento 2.3.1 command module:disable removes tables as well #24458 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: DBComponent: ModuleIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions