# Class SetTablePrimaryKey (1.16.0)

1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.4 1.11.0 1.10.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.3 1.3.2 1.2.1 1.1.0 1.0.2 0.2.4 0.1.0

    SetTablePrimaryKey(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options to configure rule type SetTablePrimaryKey.
The rule is used to specify the columns and name to
configure/alter the primary key of a table.

The rule filter field can refer to one entity.

The rule scope can be one of: Table.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `primary_key_columns` | `MutableSequence[str]` Required. List of column names for the primary key |
| `primary_key` | `str` Optional. Name for the primary key |