tumtum/oxid-schema-expander
最新稳定版本:v1.0.1
Composer 安装命令:
composer require tumtum/oxid-schema-expander
包简介
Library to modify the OXID eShop database. Ideal for OXID modules to have their tables.
README 文档
README
Library to modify the OXID eShop database. Ideal for OXID modules to have their tables.
The tables will be reviewed and extended or created if necessary.
Example
public static function onModuleActivation() { $desire = new DesireExpander(); // Simple create new table $desire ->table('tm_example') ->addFieldOxid() ->addFieldOxactive() ->addFieldOxactiveFrom() ->addFieldOxactiveTo() ->addField('OXHASH', "char(32) COLLATE latin1_general_ci NOT NULL DEFAULT '' COMMENT 'Hash'") ->addField('OXTIME', "int(11) NOT NULL COMMENT 'Validation time'") ->addFieldOxtimestamp() ->setPrimaryKey('OXID'); // Extent a oxarticles table $desire ->table('oxarticles') ->addField('MYCOLUMN', "char(32) NOT NULL DEFAULT 'Wowo' COMMENT 'Extent only one Column'") ->after('oxlang'); // A standard oxid-ee table $desire ->table('tm_example_enterprice') ->addFieldOxid() ->addFieldOxshopid() ->addFieldOxlang() ->addField('OXHASH', "char(32) COLLATE latin1_general_ci NOT NULL DEFAULT '' COMMENT 'Hash'") ->addField('OXTIME', "int(11) NOT NULL COMMENT 'Validation time'") ->addFieldOxtimestamp() ->setPrimaryKey('OXID') ->addKey('FASTFIND', [['OXHASH', 12], 'OXTIME']); //Commit all Tables $desire->execute(); }
Changelog
[Unreleased]
v1.0.1 - 2020-03-05
Fixed
- Possible error removed, if database fetch mode changes in the meantime.
v1.0.0 - 2020-02-23
- Publishing
统计信息
- 总下载量: 7.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-02-23