In order to create a primary or unique constraint on the column, change the column data type from TEXT or BYTE, if permitted.