Function Database_super_sqlserver->change_primary_key__sql
Definitions
sources/database/shared/sqlserver.php
- Get SQL for changing the primary key of a table.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$table_prefix | string | required parameter | N/A | N/A | The table prefix |
$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 |
Return
- List of SQL queries to run
- Type: array
- Set: N/A
- Range: N/A