Function __global->_helper_change_primary_key

Definitions

sources/database_helper.php

  • Change the primary key of a table.Note: this function cannot initialise a new AUTO key, use add_auto_key for that.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$this_ref object required parameter N/A N/A Link to the real database object
$table_name ID_TEXT required parameter N/A N/A The name of the table to create the index on
$new_key array required parameter N/A N/A A list of fields to put in the new key