Skip to main content
interface AlterTableColumnsRequest
column_alterations: Record<string, string>[];
options: Record<string, string>;
table_name: string;
column_alterations: Record<string, string>[]

List of alter table add/delete/change column requests - all for the same table. Each request is a map that includes ‘column_name’, ‘action’ and the options specific for the action. Note that the same options as in alter table requests but in the same map as the column name and the action. For example: [‘column_name’:‘col_1’,‘action’:‘change_column’,‘rename_column’:‘col_2’,‘column_name’:‘col_1’,‘action’:‘add_column’, ‘type’:‘int’,‘default_value’:‘1’].

options: Record<string, string>

Optional parameters.

table_name: string

Table on which the operation will be performed. Must be an existing table or view, in [schema_name.]table_name format, using standard name resolution rules.