浏览文章
文章信息
Magento2 中添加表外键Foreign key constraint is incorrectly formed
13728
setup->getConnection()->addForeignKey( $setup->getFkName('current_table', 'current_column', $setup->getTable('parent_table'), 'parent_column'), $setup->getTable('current_table'), 'current_column', $setup->getTable('parent_table'), 'parent_column', \Magento\Framework\DB\Ddl\Table::ACTION_NO_ACTION );