Skip to content

Commit

Permalink
Update alter.go
Browse files Browse the repository at this point in the history
made edits for second issue of 6b
  • Loading branch information
nojomohr authored Dec 3, 2023
1 parent 95f39fd commit ff6f2d7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/sql/parsers/tree/alter.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,17 @@ type alterOptionImpl struct {
AlterTableOption
}

// second issue for 6b start

// The new AlterTableAddPartitionClause
type AlterTableAddPartitionClause struct {
alterOptionImpl
Typ AlterTableOptionType
PartitionDef *PartitionDefinition
}

// second issue for 6b end

type AlterOptionAlterIndex struct {
alterOptionImpl
Name Identifier
Expand Down Expand Up @@ -502,6 +513,7 @@ const (
AlterTableOrderByColumn
AlterTableAddConstraint
AlterTableAddColumn
AlterTableAddPartition // New option for adding partitions for 6b issue 2
)

// ColumnPositionType is the type for ColumnPosition.
Expand Down

0 comments on commit ff6f2d7

Please sign in to comment.