We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [upgradeschema]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
2k views

Make column unique in install schema script

I want my column to be unique. It is not an EAV attribute. I have seen some tutorials, where indexes are unique, but I am not sure it is not the same, as making column unique (or am I wrong?). Is ...
0
votes
1answer
317 views

UpgradeSchema not working in Magento 2.2.5?

I have make setup:upgrade with changing module version here is my code: <?php namespace Tatva\ProductImport\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\...
4
votes
2answers
1k views

How to add new table in existing module using UpgradeSchema in Magento 2

class UpgradeSchema implements UpgradeSchemaInterface { public function upgrade(SchemaSetupInterface $setup,ModuleContextInterface $context){ $setup->startSetup(); if (...
0
votes
2answers
146 views

Cretate new table to existing module in Magento2

I have created the module and installed. I forgot to include Setup/InstallSchema.php to create the table first time Once the module is created can we create new table using InstallSchema.php? I ...