Skip to content

Commit 58dba8a

Browse files
authored
Add index runs(runner, score) (#278)
1 parent 577f50f commit 58dba8a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
add index on runs(runner, score)
3+
"""
4+
5+
from yoyo import step
6+
7+
__depends__ = {'20250412_02_NN9kK-user-info-cli-drop-old'}
8+
9+
steps = [
10+
step(
11+
"CREATE INDEX IF NOT EXISTS runs_runner_score_idx ON leaderboard.runs(runner, score)",
12+
"DROP INDEX IF EXISTS leaderboard.runs_runner_score_idx"
13+
)
14+
]

0 commit comments

Comments
 (0)