Skip to content

Commit 8cbba51

Browse files
committed
fix: conf
2 parents b0bf230 + 0f6914a commit 8cbba51

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

db/Migration.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func GetMigrations() []Migration {
9191
{Version: "2.14.1"},
9292
{Version: "2.14.5"},
9393
{Version: "2.14.7"},
94+
{Version: "2.14.12"},
9495
{Version: "2.15.0"},
9596
{Version: "2.15.1"},
9697
}

db/sql/migrations/v2.14.12.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
create index task__output_time_idx on task__output (time);

db/sql/task.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ func (d *SqlDb) GetTaskOutputs(projectID int, taskID int, params db.RetrieveQuer
326326

327327
q := squirrel.Select("task_id", "time", "output").
328328
From("task__output").
329-
Where("task_id=?", taskID)
329+
Where("task_id=?", taskID).
330+
OrderBy("time, id")
330331

331332
if params.Count > 0 {
332333
q = q.Limit(uint64(params.Count)).Offset(uint64(params.Offset))

0 commit comments

Comments
 (0)