(cmd *ast.AlterTableCmd)
| 106 | } |
| 107 | |
| 108 | func (table *Table) setNotNull(cmd *ast.AlterTableCmd) error { |
| 109 | index, err := table.isExistColumn(cmd) |
| 110 | if err != nil { |
| 111 | return err |
| 112 | } |
| 113 | if index >= 0 { |
| 114 | table.Columns[index].IsNotNull = true |
| 115 | } |
| 116 | return nil |
| 117 | } |
| 118 | |
| 119 | // Column describes a set of data values of a particular type in a relational database table |
| 120 | // |
no test coverage detected