Skip to content

Commit 48e11ef

Browse files
committed
hidemetadata
1 parent e02d500 commit 48e11ef

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"""
2+
add_submission_status
3+
"""
4+
5+
from yoyo import step
6+
7+
__depends__ = {'20251106_01_kOjGy-draft-code-editor'}
8+
9+
steps = [
10+
step(
11+
# forward
12+
"""
13+
ALTER TABLE leaderboard.submission
14+
ADD COLUMN status TEXT NOT NULL DEFAULT 'active'
15+
""",
16+
# backward for rollback if yoyo apply fails for any reason
17+
"""
18+
ALTER TABLE leaderboard.submission
19+
DROP COLUMN status;
20+
"""
21+
)
22+
]

0 commit comments

Comments
 (0)