libsql> CREATE TABLE t(id);
libsql> CREATE INDEX i ON t(id);
libsql> ALTER TABLE t ALTER COLUMN id TO id;
Runtime error: error in adding id to t: Only ordinary tables can be altered, not indexes
But actually, since LibSQL only changes column "attributes" (not name) - this operation is safe and doesn't affect indices/triggers/etc in any way
Changes
This PR apply rename command only to the table and ignores all other potential associated entities
Context
ALTER COLUMN
doesn't work for tables with associated indices/triggers (for example https://github.com/tursodatabase/libsql/issues/1299) and failing with the error:But actually, since LibSQL only changes column "attributes" (not name) - this operation is safe and doesn't affect indices/triggers/etc in any way
Changes