Skip to content

Commit

Permalink
Merge pull request #1127 from moonstream-to/rename-column
Browse files Browse the repository at this point in the history
Rename column
  • Loading branch information
Andrei-Dolgolev authored Sep 24, 2024
2 parents 050e4ca + d4f37f1 commit d614643
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
"""Add deploy block
Revision ID: 6807bdf6f417
Revises: 48d2562504d1
Create Date: 2024-08-23 16:51:47.147758
"""

from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = "6807bdf6f417"
down_revision: Union[str, None] = "25b339f55f8f"
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.add_column(
"abi_jobs",
sa.Column("deployment_block_number", sa.BigInteger(), nullable=True),
)
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("abi_jobs", "deployment_block_number")
# ### end Alembic commands ###
1 change: 1 addition & 0 deletions moonstreamdb-v3/moonstreamdbv3/models_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ class AbiJobs(Base):
historical_crawl_status = Column(VARCHAR(256), nullable=False, index=True)
progress = Column(Integer, nullable=False, index=False)
moonworm_task_pickedup = Column(Boolean, nullable=False, index=False)
deployment_block_number = Column(BigInteger, nullable=True, index=False)
abi = Column(Text, nullable=False)
created_at = Column(
DateTime(timezone=True), server_default=utcnow(), nullable=False
Expand Down
2 changes: 1 addition & 1 deletion moonstreamdb-v3/moonstreamdbv3/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.18
0.0.19

0 comments on commit d614643

Please sign in to comment.