0

Getting this error when adding the new module, i don't have this table in database but i am getting this error, anyone can help?

1
  • can you post your installSchema or UpgradeSchema
    – fmsthird
    Commented Apr 24, 2019 at 21:04

1 Answer 1

0

You can simply bypass this error by checking first in your script if the table exists or not.
Something like this:

$tableName = $installer->getTable('yourTableName');

if ($installer->getConnection()->isTableExists($tableName) != true) {
  //your create table script
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.