You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
152895: schemachanger: implement ALTER TABLE .. RENAME in declarative schemachanger r=rafiss a=rafiss
See individual commits to make this easier to review.
This preserves all the validations and error handling from the legacy schema
changer.
### scexec: add deferred mutation to rename TTL schedule
This will make sure the TTL schedule name matches the new table name
when a table is renamed, just as the legacy schema changer does.
### scbuild: handle trigger/procedure dependencies for table renames
### lease_test: fix tests that rely on legacy testing knobs
Since RENAME now works in the declarative schema changer, we need to
force these tests to use the legacy schema changer to test the desired
behavior.
fixes#148339
Release note: None
153737: sql: make inspect a system privilege r=bghal a=bghal
Previously the inspect privilege was tied to specific objects (tables
and databases). For simplicity, it has been changed to a system
privilege. This has no user impact as the commands associated with the
privilege are as yet unimplemented.
Epic: CRDB-30356
Part of: #148925
Release note: None
153787: sql/schemachanger: fix lost dependencies in ALTER POLICY expressions r=spilchen a=spilchen
When altering only the USING expression of a policy that also had a WITH CHECK expression, dependencies from the WITH CHECK expression were incorrectly lost. This occurred because the upsertPolicyExpressions function overwrote dependency sets instead of unioning them.
Fixes#153191
Epic: none
Release note (bug fix): Fixed ALTER POLICY incorrectly dropping dependency tracking for functions, sequences, or types in policy expressions.
Co-authored-by: Rafi Shamim <[email protected]>
Co-authored-by: Brendan Gerrity <[email protected]>
Co-authored-by: Matt Spilchen <[email protected]>
0 commit comments