Skip to content

Commit

Permalink
fix: primary key of geospatial_index
Browse files Browse the repository at this point in the history
  • Loading branch information
siripr4 committed May 1, 2024
1 parent 28a110e commit 32a7264
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CREATE TABLE geospatial_index (
geohash TEXT PRIMARY KEY,
business_id INTEGER REFERENCES businesses(id)
)
geohash TEXT,
business_id INTEGER REFERENCES businesses(id),
PRIMARY KEY (geohash, business_id)
)

0 comments on commit 32a7264

Please sign in to comment.