Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ajay committed Dec 2, 2021
1 parent ddac85c commit b45db18
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@

def upgrade():
with op.batch_alter_table("report_schedule") as batch_op:
op.add_column(
"report_schedule",
batch_op.add_column(
sa.Column("extra", sa.Text(), nullable=True, default="{}",),
)
connection.execute(report_schedule.update().values({"extra": "{}"}))
batch_op.alter_column("extra", existing_type=sa.Text(), nullabe=False)
connection.execute(report_schedule.update().values({"extra": "{}"}))
with op.batch_alter_table("report_schedule") as batch_op:
batch_op.alter_column("extra", existing_type=sa.Text(), nullable=False)


def downgrade():
Expand Down

0 comments on commit b45db18

Please sign in to comment.