Skip to content

Commit

Permalink
Adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobbrewer1 committed Dec 3, 2024
1 parent 7141802 commit 697fa52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/models/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func (t *Table) setPrimaryKey(con *ast.Constraint) {
t.PrimaryKey.Columns[i].InUniqueKey = true
}

// TODO: remove this once the parser is fixed
for _, col := range t.Columns {
for _, pk := range t.PrimaryKey.Columns {
if col.Name == pk.Name {
Expand Down

0 comments on commit 697fa52

Please sign in to comment.