Function DatabaseConnector->add_auto_key
Definitions
sources/database.php
- Use an *AUTO key for a table that had some other key before.
- 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 | Table name |
$field_name | ID_TEXT | No | No | id | N/A | N/A | Field name for new key, must always be 'id' |
Preview
Code (PHP)
/**
* Use an *AUTO key for a table that had some other key before.
*
* @param ID_TEXT $table_name Table name
* @param ID_TEXT $field_name Field name for new key, must always be 'id'
*/
public function add_auto_key(string $table_name, string $field_name = 'id')
* Use an *AUTO key for a table that had some other key before.
*
* @param ID_TEXT $table_name Table name
* @param ID_TEXT $field_name Field name for new key, must always be 'id'
*/
public function add_auto_key(string $table_name, string $field_name = 'id')