Skip to content

Commit

Permalink
Fixed errors in alembic scripts (#466)
Browse files Browse the repository at this point in the history
Closes #465
  • Loading branch information
jcadam14 authored Oct 23, 2024
1 parent e483817 commit 54fc55d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

def upgrade() -> None:
with op.batch_alter_table("filing") as batch_op:
batch_op.add_column(sa.Column("is_voluntary", sa.Boolean, nullable=False))
batch_op.add_column(sa.Column("is_voluntary", sa.Boolean, server_default=sa.text("false"), nullable=False))


def downgrade() -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def upgrade() -> None:
batch_op.alter_column("hq_address_state", type_=sa.String(255), nullable=False)
batch_op.alter_column("email", type_=sa.String(255), nullable=False)
batch_op.alter_column("phone_number", type_=sa.String(255), nullable=False)
batch_op.alter_column("phone_ext", type_=sa.String(255), nullable=False)
batch_op.alter_column("phone_ext", type_=sa.String(255), nullable=True)


def downgrade() -> None:
Expand All @@ -45,4 +45,4 @@ def downgrade() -> None:
batch_op.alter_column("hq_address_state", type_=sa.String, nullable=False)
batch_op.alter_column("email", type_=sa.String, nullable=False)
batch_op.alter_column("phone_number", type_=sa.String, nullable=False)
batch_op.alter_column("phone_ext", type_=sa.String, nullable=False)
batch_op.alter_column("phone_ext", type_=sa.String, nullable=True)

0 comments on commit 54fc55d

Please sign in to comment.