-
Notifications
You must be signed in to change notification settings - Fork 106
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
1 parent
ed19e4b
commit 8077dde
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
discovery-provider/alembic/versions/6f98e9709e3e_fix_is_available.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,37 @@ | ||
"""fix_is_available | ||
Revision ID: 6f98e9709e3e | ||
Revises: a62b4e92b733 | ||
Create Date: 2023-02-08 03:33:50.227563 | ||
""" | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '6f98e9709e3e' | ||
down_revision = 'a62b4e92b733' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
connection = op.get_bind() | ||
connection.execute( | ||
""" | ||
UPDATE "tracks" | ||
SET "is_available" = true, "is_delete" = false | ||
WHERE "is_current" = true and "track_id" = 1783183467; | ||
UPDATE "tracks" | ||
SET "is_available" = true, "is_delete" = false | ||
WHERE "is_current" = true and "track_id" = 48325816; | ||
UPDATE "tracks" | ||
SET "is_available" = true, "is_delete" = false | ||
WHERE "is_current" = true and "track_id" = 1496592899; | ||
""" | ||
) | ||
|
||
|
||
def downgrade(): | ||
pass |