Skip to content

Commit

Permalink
Add default metadata providers sources
Browse files Browse the repository at this point in the history
  • Loading branch information
falvaradorodriguez committed Jan 8, 2025
1 parent 7c68c8c commit ec83dc4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions migrations/versions/8d2eacb17707_default_sources.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
"""default_sources
Revision ID: 8d2eacb17707
Revises: e4e2e62601d2
Create Date: 2025-01-08 12:32:30.338594
"""

from typing import Sequence, Union

from alembic import op

# revision identifiers, used by Alembic.
revision: str = "8d2eacb17707"
down_revision: Union[str, None] = "e4e2e62601d2"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.execute(
"""
INSERT INTO abisource (name, url)
VALUES ('Etherscan', ''),
('Sourcify', ''),
('Blockscout', '');
"""
)
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.execute(
"""
DELETE FROM abisource
WHERE (name = 'Etherscan' AND url = '')
OR (name = 'Sourcify' AND url = '')
OR (name = 'Blockscout' AND url = '');
"""
)
# ### end Alembic commands ###

0 comments on commit ec83dc4

Please sign in to comment.