Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration from install schema to declarative schema #613

Open
MaximeChamont opened this issue Sep 23, 2024 · 1 comment
Open

Migration from install schema to declarative schema #613

MaximeChamont opened this issue Sep 23, 2024 · 1 comment

Comments

@MaximeChamont
Copy link

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:

  • Magento Version: 2.4.7
  • Module Version: 2.11.6
  • PHP Version: 8.2.18

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants