amadeco/module-db-override
Composer 安装命令:
composer require amadeco/module-db-override
包简介
A module to enable experimental mariadb 12.X series before offical support is available.
README 文档
README
Extend database version compatibility for Magento 2 with experimental support for MariaDB 11.X/12.X and enhanced version detection.
What it does
Three fixes for running Magento 2.4.x on a MariaDB version ahead of its certified matrix (all rooted in the same uncertified MariaDB 12.x engine):
- Version detection — adds MariaDB 11.4 / 12.0–12.4 patterns to
SqlVersionProvider::$supportedVersionPatterns, so setup/version gating stops rejecting the engine with "Current version of RDBMS is not supported". - Default charset — an after-plugin on the declarative-schema
Tablefactory returnsutf8mb4/utf8mb4_general_cifor MariaDB >= 10.4 (the hardcoded static map only knows 10.4/10.6/11.4/mysql8.29). ⚠ Activate only once live tables are already utf8mb4 — seeNOTES.md. - Reserved word
to_date—TO_DATEis a reserved function name on MariaDB 12.x, so a bareto_datecolumn identifier is a 1064 syntax error. Twoaroundplugins re-add thefrom_date/to_datevalidity-date predicates back-tick quoted inSalesRule\...\DateApplier::applyDate()(cart/checkout, never FPC-cached → hard 500) andSmile\ElasticsuiteCatalogOptimizer\...\Collection::addIsActiveFilter()(FPC-masked, 500 on cache miss). Scoped to MariaDB 12+ viaModel\ReservedWordEngine; a true pass-through on MySQL / MariaDB < 12. (Merged in from the formerAmadeco_MariaDbReservedWordFix.)
Dependencies
magento/framework is the only hard requirement. The SalesRule and ElasticSuite optimizer
integrations are soft: declared via <sequence> in module.xml (load-order only — tolerates
absence) and listed under suggest in composer.json. Each date-filter plugin activates only
when its target module is installed; on a build without it, the plugin is skipped at
setup:di:compile and inert at runtime. No hard composer dependency is created on either module.
Installation
Composer Installation
Execute the following commands in your Magento root directory:
composer require amadeco/module-db-override bin/magento module:enable Amadeco_DbOverride bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy
Manual Installation
- Create directory
app/code/Amadeco/DbOverridein your Magento installation - Clone or download this repository into that directory
- Enable the module and update the database:
bin/magento module:enable Amadeco_DbOverride bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy
Compatibility
- Magento 2.4.x
- PHP 8.3
🛠 Supported Database Versions
- MySQL 5.7
- MySQL 8.0
- MariaDB 10.2 - 10.6 - 10.11
- MariaDB 11.4
- MariaDB 12.0 - 12.4
Contributing
Contributions are welcome! Please read our Contributing Guidelines.
Support
For issues or feature requests, please create an issue on our GitHub repository.
License
This module is licensed under the Open Software License ("OSL") v3.0. See the LICENSE.txt file for details.
统计信息
- 总下载量: 588
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2025-03-27