Skip to content

Commit fec36a4

Browse files
zhanluxianshenMandssS
authored andcommitted
Fix bug of preparation db index .
Signed-off-by: zhanluxianshen <[email protected]>
1 parent e4e8c92 commit fec36a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

data/preparation.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ import (
2020
"context"
2121
"database/sql"
2222
"fmt"
23-
"github.com/chaosblade-io/chaosblade-spec-go/log"
2423
"strings"
2524
"time"
25+
26+
"github.com/chaosblade-io/chaosblade-spec-go/log"
2627
)
2728

2829
type PreparationRecord struct {
@@ -91,7 +92,7 @@ const preparationTableDDL = `CREATE TABLE IF NOT EXISTS preparation (
9192

9293
var preIndexDDL = []string{
9394
`CREATE INDEX pre_uid_uidx ON preparation (uid)`,
94-
`CREATE INDEX pre_status_idx ON preparation (uid)`,
95+
`CREATE INDEX pre_status_idx ON preparation (status)`,
9596
`CREATE INDEX pre_type_process_idx ON preparation (program_type, process)`,
9697
}
9798

0 commit comments

Comments
 (0)