(cmd *ast.AlterTableCmd)
| 95 | } |
| 96 | |
| 97 | func (table *Table) dropNotNull(cmd *ast.AlterTableCmd) error { |
| 98 | index, err := table.isExistColumn(cmd) |
| 99 | if err != nil { |
| 100 | return err |
| 101 | } |
| 102 | if index >= 0 { |
| 103 | table.Columns[index].IsNotNull = false |
| 104 | } |
| 105 | return nil |
| 106 | } |
| 107 | |
| 108 | func (table *Table) setNotNull(cmd *ast.AlterTableCmd) error { |
| 109 | index, err := table.isExistColumn(cmd) |
no test coverage detected