Skip to content

Conversation

@shghasemi
Copy link
Contributor

This change adds support for ALTER TABLE ... SET SCHEMA to the
declarative schema changer. Before, this operation was ran by the
legacy schema changer.

Epic CRDB-31281

Fixes #155989
Release note (sql change): ALTER TABLE ... SET SCHEMA is supported by
the declerative schema changer.

Previously, namespace had descID, databaseID, and name as
attributes. DatabaseID was replaced with schemaID to support
`ALTER TABLE ... SET SCHEMA`.

Epic CRDB-31281

Release note: None
@shghasemi shghasemi self-assigned this Nov 20, 2025
@shghasemi shghasemi requested a review from a team as a code owner November 20, 2025 16:14
@blathers-crl
Copy link

blathers-crl bot commented Nov 20, 2025

Your pull request contains more than 1000 changes. It is strongly encouraged to split big PRs into smaller chunks.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

This change adds support for `ALTER TABLE ... SET SCHEMA` to the
declarative schema changer. Before, this operation was ran by the
legacy schema changer.

Epic CRDB-31281

Fixes cockroachdb#155989
Release note (sql change): `ALTER TABLE ... SET SCHEMA` is supported by
the declerative schema changer.
@shghasemi shghasemi requested a review from a team as a code owner November 20, 2025 19:51
@shghasemi shghasemi requested review from msbutler and removed request for a team November 20, 2025 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql/schemachanger: support ALTER TABLE ... SET SCHEMA ... in declarative schema changer

2 participants