magefan / module-blog

Magento 2 Blog Extension is a solution that helps you to create a blog on Magento and manage posts,categories, tags, authors, and comments.
https://magefan.com/magento2-blog-extension
Other
267 stars 136 forks source link

Migration from install schema to declarative schema #613

Open MaximeChamont opened 2 months ago

MaximeChamont commented 2 months ago

Describe the bug As your last versions of your module are compatible with Magento version 2.3.0-2.4.x only, is it planned to migrate our blog module to declarative schema instead of InstallSchema or UpgradeSchema scripts ?

Without this migration, it is necessary to continue to use the old upgrade mechanism to extend your module because declarative schema are executed before your upgraders during the installation process.

Preconditions:

To Reproduce Steps to reproduce the behavior:

  1. Create a module similar to this one https://github.com/magefan/module-blog-custom-field but with new column added by a db_schema.xml file
  2. Reinstall Magento application
  3. Updated table is partially created (columns created by InstallSchema are missing)

Expected behavior db_schema will be used

Actual behavior InstallSchema or UpgradeSchema are used

VikaTarnavska commented 2 weeks ago

Hello Maxime,

Even though the declarative schema appeared in Magento 2.3.0, there are known cases where our customers are facing issues with it. Starting from May 1, 2025, we will no longer support Magento v2.3.x. This is when we will add the declarative schema to our extensions.