Questions tagged «upgradeschema»

4
添加列升级架构Magento 2
我想通过遵循这篇文章,在我的自定义扩展中使用升级模式为数据库表插入新字段,但出现错误提示: [Zend_Db_Statement_Exception] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'Category Depth.l ime_eleveniacategory' doesn't exist, query was: DESCRIBE `Category Depth`.` lime_eleveniacategory` 这是我的代码: namespace Test\TestAgain\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; class UpgradeSchema implements UpgradeSchemaInterface { /** * {@inheritdoc} */ public function upgrade( SchemaSetupInterface $setup, ModuleContextInterface $context ) { $setup->startSetup(); …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.