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

Commit 941813f

Browse files
author
noah
committed
Fix the order of the index
1 parent f53170b commit 941813f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

model/ent/migrate/schema.go

Lines changed: 2 additions & 2 deletions
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
@@ -110,6 +110,7 @@ func (Deployment) Indexes() []ent.Index {
110110
// Find by UID when the hook is coming.
111111
index.Fields("uid"),
112112
// List inactive deployments for 30 minutes.
113-
index.Fields("status", "created_at"),
113+
// Or search deployments that were created between the start time and the end time.
114+
index.Fields("created_at", "status"),
114115
}
115116
}

0 commit comments

Comments
 (0)