formatted project by python-black
This commit is contained in:
@@ -10,19 +10,36 @@ depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.add_column("attachment_jobs", sa.Column("cycle_start_attempt", sa.Integer(), nullable=False, server_default="0"))
|
||||
op.add_column("attachment_jobs", sa.Column("attempt_limit", sa.Integer(), nullable=True))
|
||||
op.add_column("attachment_jobs", sa.Column("last_error_permanent", sa.Boolean(), nullable=True))
|
||||
op.add_column(
|
||||
"attachment_jobs",
|
||||
sa.Column(
|
||||
"cycle_start_attempt", sa.Integer(), nullable=False, server_default="0"
|
||||
),
|
||||
)
|
||||
op.add_column(
|
||||
"attachment_jobs", sa.Column("attempt_limit", sa.Integer(), nullable=True)
|
||||
)
|
||||
op.add_column(
|
||||
"attachment_jobs",
|
||||
sa.Column("last_error_permanent", sa.Boolean(), nullable=True),
|
||||
)
|
||||
op.create_table(
|
||||
"job_replays",
|
||||
sa.Column("id", sa.Uuid(), primary_key=True),
|
||||
sa.Column("job_id", sa.Uuid(), sa.ForeignKey("attachment_jobs.id"), nullable=False),
|
||||
sa.Column(
|
||||
"job_id", sa.Uuid(), sa.ForeignKey("attachment_jobs.id"), nullable=False
|
||||
),
|
||||
sa.Column("actor", sa.String(64), nullable=False),
|
||||
sa.Column("reason", sa.String(32), nullable=False),
|
||||
sa.Column("previous_attempt", sa.Integer(), nullable=False),
|
||||
sa.Column("attempt_limit", sa.Integer(), nullable=False),
|
||||
sa.Column("previous_error_code", sa.String(64), nullable=True),
|
||||
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False, server_default=sa.func.clock_timestamp()),
|
||||
sa.Column(
|
||||
"created_at",
|
||||
sa.DateTime(timezone=True),
|
||||
nullable=False,
|
||||
server_default=sa.func.clock_timestamp(),
|
||||
),
|
||||
)
|
||||
op.create_index("ix_job_replays_job_id", "job_replays", ["job_id"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user