Skip to content

Commit

Permalink
Fix is_available on three tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed Feb 8, 2023
1 parent ed19e4b commit 8077dde
Showing 1 changed file with 37 additions and 0 deletions.
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

0 comments on commit 8077dde

Please sign in to comment.