diff --git a/core/lib/Drupal/Core/Database/Schema.php b/core/lib/Drupal/Core/Database/Schema.php index 8baa83c0d3..038df025d7 100644 --- a/core/lib/Drupal/Core/Database/Schema.php +++ b/core/lib/Drupal/Core/Database/Schema.php @@ -417,8 +417,13 @@ public function fieldExists($table, $column) { * @return string[]|false * A simple array with the names of the columns composing the table's * primary key, or FALSE if the table does not exist. + * + * @throws \RuntimeException + * If the driver does not override this method. */ - abstract public function findPrimaryKeyColumns($table); + public function findPrimaryKeyColumns($table) { + throw new \RuntimeException("The '" . $this->connection->driver() . "' database driver does not implement " . __METHOD__); + } /** * Add a unique key.