DropColumn drops a column from the table. Returns an error if the column does not exist.
(columnName string)
| 994 | // DropColumn drops a column from the table. |
| 995 | // Returns an error if the column does not exist. |
| 996 | func (t *TableMetadata) DropColumn(columnName string) error { |
| 997 | return t.dropColumnInternal(columnName, true) |
| 998 | } |
| 999 | |
| 1000 | // dropColumnInternal is the internal implementation that allows controlling position renumbering. |
| 1001 | func (t *TableMetadata) dropColumnInternal(columnName string, renumberPositions bool) error { |