diff --git a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
index 4a706bf..7859afe 100644
--- a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
+++ b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
@@ -439,6 +439,14 @@ protected function ensureTables() {
           'description' => 'Hash of source ids. Used as primary key',
         ));
       }
+      if (!$this->getDatabase()->schema()->fieldExists($this->messageTableName, static::SOURCE_IDS_HASH)) {
+        $this->getDatabase()->schema()->addField($this->messageTableName, static::SOURCE_IDS_HASH, array(
+          'type' => 'varchar',
+          'length' => '64',
+          'not null' => TRUE,
+          'description' => 'Hash of source ids. Used as primary key',
+        ));
+      }
     }
   }
 
