Declarative Schema
-
April 18, 2025 3
Use the Magento 2 CLI to generate the
db_schema_whitelist.json
file for your module. This file tracks all database tables, columns, and keys defined through db_schema.xml. It's essential for.....12 min read -
April 17, 2025 3
Learn how to generate the
db_schema_whitelist.json
file in Magento 2 using the CLI. This file is essential for tracking declarative schema changes in custom modules. We’ll walk through the e.....13 min read -
April 17, 2025 3
To remove a column in Magento 2 using declarative schema, update the db_schema.xml file by setting disabled="true" on the column you want to drop. This method eliminates the need for raw SQL. After modifying.....
12 min read