diff --git a/config/schema/search_api.schema.yml b/config/schema/search_api.schema.yml
index d8e1396..7d3ffae 100644
--- a/config/schema/search_api.schema.yml
+++ b/config/schema/search_api.schema.yml
@@ -1,5 +1,5 @@
 search_api.settings:
-  type: mapping
+  type: config_object
   label: 'Search API settings'
   mapping:
     default_cron_limit:
diff --git a/search_api_db/src/Plugin/search_api/backend/Database.php b/search_api_db/src/Plugin/search_api/backend/Database.php
index 49ed064..bafbe59 100644
--- a/search_api_db/src/Plugin/search_api/backend/Database.php
+++ b/search_api_db/src/Plugin/search_api/backend/Database.php
@@ -578,12 +578,13 @@ class Database extends BackendPluginBase {
     if ($new_table) {
       $db_field['not null'] = TRUE;
     }
+    $table['fields'][$db['column']] = $db_field;
     $this->database->schema()->addField($db['table'], $db['column'], $db_field);
     if ($db_field['type'] === 'varchar') {
-      $this->database->schema()->addIndex($db['table'], $db['column'], array(array($db['column'], 10)));
+      $this->database->schema()->addIndex($db['table'], $db['column'], array(array($db['column'], 10)), $table);
     }
     else {
-      $this->database->schema()->addIndex($db['table'], $db['column'], array($db['column']));
+      $this->database->schema()->addIndex($db['table'], $db['column'], array($db['column']), $table);
     }
     if ($new_table) {
       // Add a covering index for fields with multiple values.
