Skip to content

Commit

Permalink
add index
Browse files Browse the repository at this point in the history
  • Loading branch information
totegamma committed Oct 14, 2024
1 parent 6235be3 commit 5eec8a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY ./go.mod ./go.sum ./
RUN go mod download && go mod verify
COPY ./ ./

RUN go install github.com/concrnt/[email protected].1
RUN go install github.com/concrnt/[email protected].3

RUN VERSION=${VERSION:-$(git describe)} \
&& BUILD_MACHINE=$(uname -srmo) \
Expand Down
2 changes: 1 addition & 1 deletion cmd/gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY ./go.mod ./go.sum ./
RUN go mod download && go mod verify
COPY ./ ./

RUN go install github.com/concrnt/[email protected].1
RUN go install github.com/concrnt/[email protected].3

RUN VERSION=${VERSION:-$(git describe)} \
&& BUILD_MACHINE=$(uname -srmo) \
Expand Down
4 changes: 2 additions & 2 deletions core/dbschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ type Job struct {

type CommitOwner struct {
ID uint `json:"id" gorm:"primaryKey;auto_increment"`
CommitLogID uint `json:"commitLogID" gorm:"index"`
Owner string `json:"owner" gorm:"type:char(42);index"`
CommitLogID uint `json:"commitLogID" gorm:"index;uniqueIndex:idx_commit_owner"`
Owner string `json:"owner" gorm:"type:char(42);index;uniqueIndex:idx_commit_owner"`
}

type CommitLog struct {
Expand Down

0 comments on commit 5eec8a2

Please sign in to comment.