Documentation Index
Fetch the complete documentation index at: https://planetscale.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
What this error means
PARTIAL_KEY_IN_UNIQUE_KEY means a primary key uses a prefix length, such as name(10).
A common error message is:
Why PlanetScale rejects it
A prefix index only indexes part of a column value. PlanetScale needs a unique key that can identify the full row during online schema changes. A partial key is not accepted as that identity.How to fix it
Use a full column in the primary key, add a surrogate primary key, or add a separate full unique key overNOT NULL columns.
Invalid:

