| 1 | [**@lancedb/lancedb**](../README.md) • **Docs** |
| 2 | |
| 3 | *** |
| 4 | |
| 5 | [@lancedb/lancedb](../globals.md) / ColumnAlteration |
| 6 | |
| 7 | # Interface: ColumnAlteration |
| 8 | |
| 9 | A definition of a column alteration. The alteration changes the column at |
| 10 | `path` to have the new name `name`, to be nullable if `nullable` is true, |
| 11 | and to have the data type `data_type`. At least one of `rename` or `nullable` |
| 12 | must be provided. |
| 13 | |
| 14 | ## Properties |
| 15 | |
| 16 | ### nullable? |
| 17 | |
| 18 | > `optional` **nullable**: `boolean` |
| 19 | |
| 20 | Set the new nullability. Note that a nullable column cannot be made non-nullable. |
| 21 | |
| 22 | *** |
| 23 | |
| 24 | ### path |
| 25 | |
| 26 | > **path**: `string` |
| 27 | |
| 28 | The path to the column to alter. This is a dot-separated path to the column. |
| 29 | If it is a top-level column then it is just the name of the column. If it is |
| 30 | a nested column then it is the path to the column, e.g. "a.b.c" for a column |
| 31 | `c` nested inside a column `b` nested inside a column `a`. |
| 32 | |
| 33 | *** |
| 34 | |
| 35 | ### rename? |
| 36 | |
| 37 | > `optional` **rename**: `string` |
| 38 | |
| 39 | The new name of the column. If not provided then the name will not be changed. |
| 40 | This must be distinct from the names of all other columns in the table. |