-
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.
Cherry pick and reconcile repost fix migration (#4697)
Co-authored-by: Raymond Jacobson <ray@audius.co>
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 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
30 changes: 30 additions & 0 deletions
30
discovery-provider/alembic/versions/72b030bb3dcb_handle_repost_fix.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,30 @@ | ||
"""handle_repost_fix | ||
Revision ID: 72b030bb3dcb | ||
Revises: 6a9f01e775d5 | ||
Create Date: 2023-01-31 17:56:07.385681 | ||
""" | ||
from alembic import op | ||
from src.utils.alembic_helpers import build_sql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '72b030bb3dcb' | ||
down_revision = '6a9f01e775d5' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
up_files = [ | ||
"handle_repost.sql" | ||
] | ||
|
||
def upgrade(): | ||
sql = build_sql(up_files) | ||
connection = op.get_bind() | ||
connection.execute(sql) | ||
|
||
|
||
def downgrade(): | ||
sql = build_sql(up_files) | ||
connection = op.get_bind() | ||
connection.execute(sql) |
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