mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-26 11:24:32 +01:00
feat(parser): add ALTER COLUMN
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user