Function DatabaseRepair->fix_table_inconsistent_in_db__bad_primary_key
Definitions
sources/database_repair.php
- Table has wrong key so fix that.
- Visibility: private
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$table_name | string | No | No | required parameter | N/A | N/A | Table name |
$key_fields | array | No | No | required parameter | N/A | N/A | List of key fields |
$include_meta | boolean | No | No | required parameter | N/A | N/A | Make meta changes too |
$return_queries | boolean | No | No | False | N/A | N/A | Whether to return the main queries instead of inserting them |
Returns
- Special queries (null: $return_queries not set)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Table has wrong key so fix that.
*
* @param string $table_name Table name
* @param array $key_fields List of key fields
* @param boolean $include_meta Make meta changes too
* @param boolean $return_queries Whether to return the main queries instead of inserting them
* @return ?array Special queries (null: $return_queries not set)
*/
private function fix_table_inconsistent_in_db__bad_primary_key(string $table_name, array $key_fields, bool $include_meta, bool $return_queries = false) : ?array
* Table has wrong key so fix that.
*
* @param string $table_name Table name
* @param array $key_fields List of key fields
* @param boolean $include_meta Make meta changes too
* @param boolean $return_queries Whether to return the main queries instead of inserting them
* @return ?array Special queries (null: $return_queries not set)
*/
private function fix_table_inconsistent_in_db__bad_primary_key(string $table_name, array $key_fields, bool $include_meta, bool $return_queries = false) : ?array