Skip to content

Commit

Permalink
Add primary key config to tableInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
asdine committed Sep 1, 2020
1 parent 676945b commit 5bb6b1f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions database/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,16 @@ func (t *tableInfoStore) loadAllTableInfo(tx engine.Transaction) error {
t.tableInfos[tableInfoStoreName] = TableInfo{
storeName: []byte(tableInfoStoreName),
readOnly: true,
FieldConstraints: []FieldConstraint{
{
Path: document.ValuePath{
document.ValuePathFragment{
FieldName: "table_name",
},
},
IsPrimaryKey: true,
},
},
}
return nil
}
Expand Down

0 comments on commit 5bb6b1f

Please sign in to comment.