MCPcopy Create free account
hub / github.com/bytebase/bytebase / DropColumn

Method DropColumn

backend/store/model/database.go:996–998  ·  view source on GitHub ↗

DropColumn drops a column from the table. Returns an error if the column does not exist.

(columnName string)

Source from the content-addressed store, hash-verified

994// DropColumn drops a column from the table.
995// Returns an error if the column does not exist.
996func (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.
1001func (t *TableMetadata) dropColumnInternal(columnName string, renumberPositions bool) error {

Callers 3

tidbAlterTableFunction · 0.80

Calls 1

dropColumnInternalMethod · 0.95