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?

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

1 Answer 1


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, privacy policy and cookie policy

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