Skip to content

Commit

Permalink
Fix to add missing {{if in doc (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust authored Sep 19, 2023
1 parent 9247a6a commit 2f94cb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ type AlterTable struct {

// AddColumn is ADD COLUMN clause in ALTER TABLE.
//
// ADD COLUMN {{.IfNotExists}}IF NOT EXISTS{{end}} {{.Column | sql}}
// ADD COLUMN {{if .IfNotExists}}IF NOT EXISTS{{end}} {{.Column | sql}}
type AddColumn struct {
// pos = Add
// end = Column.end
Expand Down Expand Up @@ -1793,7 +1793,7 @@ type InterleaveIn struct {

// DropIndex is DROP INDEX statement node.
//
// DROP INDEX {{.IfExists}}IF EXISTS{{end}} {{.Name | sql}}
// DROP INDEX {{if .IfExists}}IF EXISTS{{end}} {{.Name | sql}}
type DropIndex struct {
// pos = Drop
// end = Name.end
Expand Down

0 comments on commit 2f94cb2

Please sign in to comment.