Search by

swissup / module-setup-nodrop

vovayatsyukswissup

Avoid executing drop operations during setup:upgrade command

Package info

github.com/swissup/module-setup-nodrop

Type:magento2-module

pkg:composer/swissup/module-setup-nodrop

Statistics

Installs: 21

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2025-01-10 08:45 UTC

This package is auto-updated.

Last update: 2026-11-04 09:31:31 UTC


README

SetupNodrop — is a Magento module that disables drop operations of disabled modules during setup:upgrade command. Enabled modules can still drop elements they removed from their db_schema.xml.

This module is useful when working with numerous third-party modules, allowing you to disable some periodically, without possibility to drop their data.

Installation

composer require swissup/module-setup-nodrop
bin/magento module:enable Swissup_SetupNodrop

That's all. Magento will no longer drop tables, columns, indexes, and constraints listed in db_schema_whitelist.json of currently disabled modules.