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
INVALID_COLUMN_REFERENCED_IN_VIEW means a view references a column that Vitess cannot resolve in the final schema. This can also happen when a view uses a star expression that cannot be safely expanded.
Common underlying messages include:
Why PlanetScale rejects it
A view must remain valid after the deploy request is applied. If a column is dropped, renamed, ambiguous across joined tables, or hidden behindSELECT *, Vitess cannot reliably generate a safe schema diff.
How to fix it
Use explicit column lists and update the view before dropping or renaming columns. Avoid this:- Add the new column and update application writes.
- Update the view to reference the new column.
- Drop the old column after the view and application no longer use it.

