-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
42 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
17 changes: 17 additions & 0 deletions
17
src/discord-cluster-manager/migrations/20241214_01_M62BX-drop-old-leaderboard-tables.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,17 @@ | ||
""" | ||
This migration drops tables in the public schema that we were previously | ||
creating. The leaderboard tables are now in the leaderboard schema, so we dont' | ||
need the tables in the public schema any more. I think the CASCADE clauses will | ||
cause the sequences owned by the old tables to be dropped, but if not we'll need | ||
another migration. | ||
""" | ||
|
||
from yoyo import step | ||
|
||
__depends__ = {'20241208_01_p3yuR-initial-leaderboard-schema'} | ||
|
||
steps = [ | ||
step("DROP TABLE IF EXISTS public.leaderboard CASCADE"), | ||
step("DROP TABLE IF EXISTS public.submissions CASCADE"), | ||
step("DROP TABLE IF EXISTS public.runinfo CASCADE") | ||
] |