คำถามติดแท็ก upgradeschema

4
เพิ่มคอลัมน์อัพเกรด Schema 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(); …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.