-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default metadata providers sources
- Loading branch information
1 parent
7c68c8c
commit ec83dc4
Showing
1 changed file
with
43 additions
and
0 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
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 ### |