Matt LuoM
Convex Community2y ago
16 replies
Matt Luo

How do I deploy a change for a table name?

In the scenario where a table already has data in it, How do I deploy a change for a table name?

When I change the name of the table in my schema.ts, when I insert a new document, Convex is creating an entirely new table with the new name. The old table with the old name remains.

Kapa says "To rename a table, you would need to create a new table with the new name, migrate all the data from the old table to the new one, and then delete the old table."
https://discord.com/channels/1019350475847499849/1260308690490097664
Was this page helpful?