Skip to content

Commit

Permalink
Use only track UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
yomcube committed Dec 23, 2024
1 parent 6b55337 commit c4ff900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ func setupGhostIndexTable(db *sql.DB) {
player_id uuid NOT NULL,
mii_id uuid NOT NULL,
date_set date NOT NULL,
custom_track boolean NOT NULL,
track_id character(1) NOT NULL,
track_uuid uuid,` /*CTs*/ + `
track_uuid uuid NOT NULL,
character_id character(1) NOT NULL,
vehicle_id character(1) NOT NULL,
finish_time int NOT NULL,
Expand Down
3 changes: 1 addition & 2 deletions sql/tablestructs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ type SQLGhost struct {
UUID uuid `json:"uuid"`
PlayerID uuid `json:"player_id"`
MiiID uuid `json:"mii_id"`
TrackUUID uuid `json:"track_uuid"`
Date time.Time `json:"date_set"`
IsCT bool `json:"custom_track"`
CourseID common.CourseID `json:"track_id"`
CharacterID common.CharacterID `json:"character_id"`
VehicleID common.VehicleID `json:"vehicle_id"`
FinishTime uint32 `json:"finish_time"` // Total milliseconds
Expand Down

0 comments on commit c4ff900

Please sign in to comment.