-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into xai-crawlers
- Loading branch information
Showing
25 changed files
with
1,160 additions
and
243 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
engineapi/alembic/versions/6d07739cb13e_live_at_for_metatx.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,28 @@ | ||
"""Live at for metatx | ||
Revision ID: 6d07739cb13e | ||
Revises: 71e888082a6d | ||
Create Date: 2023-12-06 14:33:04.814144 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '6d07739cb13e' | ||
down_revision = '71e888082a6d' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('call_requests', sa.Column('live_at', sa.DateTime(timezone=True), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('call_requests', 'live_at') | ||
# ### end Alembic commands ### |
30 changes: 30 additions & 0 deletions
30
engineapi/alembic/versions/7191eb70e99e_tx_hash_for_call_requests.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 @@ | ||
"""Tx hash for call requests | ||
Revision ID: 7191eb70e99e | ||
Revises: 6d07739cb13e | ||
Create Date: 2023-10-04 11:23:12.516797 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '7191eb70e99e' | ||
down_revision = '6d07739cb13e' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('call_requests', sa.Column('tx_hash', sa.VARCHAR(length=256), nullable=True)) | ||
op.create_unique_constraint(op.f('uq_call_requests_tx_hash'), 'call_requests', ['tx_hash']) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint(op.f('uq_call_requests_tx_hash'), 'call_requests', type_='unique') | ||
op.drop_column('call_requests', 'tx_hash') | ||
# ### end Alembic commands ### |
50 changes: 50 additions & 0 deletions
50
engineapi/alembic/versions/71e888082a6d_leaderboard_metadata.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,50 @@ | ||
"""leaderboard metadata | ||
Revision ID: 71e888082a6d | ||
Revises: cc80e886e153 | ||
Create Date: 2023-11-15 13:21:16.108399 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "71e888082a6d" | ||
down_revision = "cc80e886e153" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column( | ||
"leaderboards", | ||
sa.Column( | ||
"blockchain_ids", | ||
sa.ARRAY(sa.Integer()), | ||
nullable=False, | ||
server_default="{}", | ||
), | ||
) | ||
op.add_column( | ||
"leaderboards", | ||
sa.Column( | ||
"wallet_connect", sa.Boolean(), nullable=False, server_default="false" | ||
), | ||
) | ||
op.add_column( | ||
"leaderboards", | ||
sa.Column( | ||
"columns_names", postgresql.JSONB(astext_type=sa.Text()), nullable=True | ||
), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("leaderboards", "columns_names") | ||
op.drop_column("leaderboards", "wallet_connect") | ||
op.drop_column("leaderboards", "blockchain_ids") | ||
# ### end Alembic commands ### |
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
Oops, something went wrong.