diff -u b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php --- b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php +++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php @@ -353,19 +353,10 @@ * {@inheritdoc} */ public function copyTable($source, $destination) { - if (!$this->tableExists($source)) { - throw new SchemaObjectDoesNotExistException(String::format("Cannot copy @source to @destination: table @source doesn't exist.", array('@source' => $source, '@destination' => $destination))); - } - if ($this->tableExists($destination)) { - throw new SchemaObjectExistsException(String::format("Cannot copy @source to @destination: table @destination already exists.", array('@source' => $source, '@destination' => $destination))); - } // @TODO The server is likely going to rename indexes and constraints // during the copy process, and it will not match our // table_name + constraint name convention anymore. - throw new \Exception('Not implemented, see https://drupal.org/node/2056133'); - // This is how the implementation could look like: - $info = $this->getPrefixInfo($destination); - return $this->connection->query('CREATE TABLE `' . $info['table'] . '` (LIKE {' . $source . '} INCLUDING ALL)'); + throw new \Exception('Not implemented, see https://drupal.org/node/2061879'); } public function dropTable($table) { diff -u b/core/lib/Drupal/Core/Database/Schema.php b/core/lib/Drupal/Core/Database/Schema.php --- b/core/lib/Drupal/Core/Database/Schema.php +++ b/core/lib/Drupal/Core/Database/Schema.php @@ -408,7 +408,7 @@ abstract public function dropTable($table); /** - * Copies the structure of a table without copying the content. + * Copies the table schema. * * @param string $source * The name of the table to be used as source.