nodeAlterTableDropNotNull converts a tree.AlterTableDropNotNull instance into an equivalent vitess.DDL instance.
(ctx *Context, node *tree.AlterTableDropNotNull, tableName vitess.TableName, ifExists bool)
| 375 | |
| 376 | // nodeAlterTableDropNotNull converts a tree.AlterTableDropNotNull instance into an equivalent vitess.DDL instance. |
| 377 | func nodeAlterTableDropNotNull(ctx *Context, node *tree.AlterTableDropNotNull, tableName vitess.TableName, ifExists bool) (*vitess.DDL, error) { |
| 378 | return &vitess.DDL{ |
| 379 | Action: "alter", |
| 380 | Table: tableName, |
| 381 | IfExists: ifExists, |
| 382 | NotNullSpec: &vitess.NotNullSpec{ |
| 383 | Action: "drop", |
| 384 | Column: vitess.NewColIdent(node.Column.String()), |
| 385 | }, |
| 386 | }, nil |
| 387 | } |
| 388 | |
| 389 | // nodeAlterTableSetNotNull converts a tree.AlterTableSetNotNull instance into an equivalent vitess.DDL instance. |
| 390 | func nodeAlterTableSetNotNull(ctx *Context, node *tree.AlterTableSetNotNull, tableName vitess.TableName, ifExists bool) (*vitess.DDL, error) { |
no test coverage detected