Function DatabaseConnector->change_primary_key
Definitions
sources/database.php
- Change the primary key of a table.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$table_name | ID_TEXT | No | No | required parameter | N/A | N/A | The name of the table to create the index on |
$new_key | array | No | No | required parameter | N/A | N/A | A list of fields to put in the new key |
Preview
Code (PHP)
/**
* Change the primary key of a table.
*
* @param ID_TEXT $table_name The name of the table to create the index on
* @param array $new_key A list of fields to put in the new key
*/
public function change_primary_key(string $table_name, array $new_key)
* Change the primary key of a table.
*
* @param ID_TEXT $table_name The name of the table to create the index on
* @param array $new_key A list of fields to put in the new key
*/
public function change_primary_key(string $table_name, array $new_key)