feat(parser): add ALTER COLUMN

This commit is contained in:
Levy A.
2025-08-27 15:45:03 -03:00
parent e1b5f2d948
commit 678ca8d33b
5 changed files with 47 additions and 3 deletions

View File

@@ -1409,6 +1409,13 @@ impl ToTokens for AlterTableBody {
s.append(TK_COLUMNKW, None)?;
def.to_tokens_with_context(s, context)
}
Self::AlterColumn { old, new } => {
s.append(TK_ALTER, None)?;
s.append(TK_COLUMNKW, None)?;
old.to_tokens_with_context(s, context)?;
s.append(TK_TO, None)?;
new.to_tokens_with_context(s, context)
}
Self::RenameColumn { old, new } => {
s.append(TK_RENAME, None)?;
s.append(TK_COLUMNKW, None)?;