-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds gpu_type column to submission table (#79)
* adds gpu_type column to submission table * changes to make ruff happy
- Loading branch information
Showing
4 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/discord-cluster-manager/migrations/20241226_01_ZQSOK-add_gpu_type_to_submission.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
""" | ||
This migration adds a score column to runinfo, and drops the score column in | ||
submission. | ||
""" | ||
|
||
from yoyo import step | ||
|
||
__depends__ = {'20241224_01_Pg4FX-delete-cascade'} | ||
|
||
steps = [ | ||
step("DROP TABLE leaderboard.runinfo"), | ||
|
||
step(""" | ||
ALTER TABLE leaderboard.submission | ||
ADD COLUMN gpu_type TEXT NOT NULL DEFAULT 'nvidia' | ||
"""), | ||
|
||
step("ALTER TABLE leaderboard.submission ADD COLUMN stdout TEXT"), | ||
|
||
step("ALTER TABLE leaderboard.submission ADD COLUMN profiler_output TEXT"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters