Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit b6a9a78

Browse files
author
noah
committed
Fix the order of the index
1 parent b8f6e6b commit b6a9a78

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

model/ent/migrate/schema.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model/ent/schema/deployment.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func (Deployment) Indexes() []ent.Index {
112112
// Find by UID when the hook is coming.
113113
index.Fields("uid"),
114114
// List inactive deployments for 30 minutes.
115-
index.Fields("status", "created_at"),
115+
// Or search deployments that were created between the start time and the end time.
116+
index.Fields("created_at", "status"),
116117
}
117118
}

0 commit comments

Comments
 (0)