QuestionQ17

EAV/Database

A developer created a new table in db.schema.xml while developing a new module.

What must be done to permit database columns to be removed when they are deleted from db_schema.xml?

Explanation

Magento declarative schema protects destructive database operations. A column removed from db_schema.xml is dropped only when it is listed in the module’s db_schema_whitelist.json, which is typically generated with setup:db-declaration:generate-whitelist.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!