1.20.x schema.inc abstract protected DatabaseSchema::cloneTableSql($source, $target)

Generate an array of query strings suitable for cloning a table.

Parameters

$source: The name of the table to be copied.

$target: The name of the new table to be created and populated with data.

Return value

An array of SQL statements to clone the table, including inserting data.:

File

includes/database/schema.inc, line 770
Generic Database schema code.

Class

DatabaseSchema
Base class for database schema definitions.

Code

abstract protected function cloneTableSql($source, $target);