FieldAttributes.setPrimaryKey

Sets the 'primary key' flag of the given field attributes.

class FieldAttributes
void
setPrimaryKey
(
int pk
)

Parameters

pk int

whether if the given field should be a primary key.

Meta