Skip to content

Commit

Permalink
run the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Bechthold committed Apr 21, 2024
1 parent dc57e2a commit 82dd276
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,29 @@


# revision identifiers, used by Alembic.
revision = '5a9f9b3bdc20'
down_revision = '51ad56d133e9'
revision = "5a9f9b3bdc20"
down_revision = "51ad56d133e9"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('log_records', schema=None) as batch_op:
batch_op.drop_constraint('log_records_attn_to_fkey', type_='foreignkey')
batch_op.drop_column('attn_to')
with op.batch_alter_table("log_records", schema=None) as batch_op:
batch_op.drop_constraint("log_records_attn_to_fkey", type_="foreignkey")
batch_op.drop_column("attn_to")

# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('log_records', schema=None) as batch_op:
batch_op.add_column(sa.Column('attn_to', sa.INTEGER(), autoincrement=False, nullable=True))
batch_op.create_foreign_key('log_records_attn_to_fkey', 'users', ['attn_to'], ['id'])
with op.batch_alter_table("log_records", schema=None) as batch_op:
batch_op.add_column(
sa.Column("attn_to", sa.INTEGER(), autoincrement=False, nullable=True)
)
batch_op.create_foreign_key(
"log_records_attn_to_fkey", "users", ["attn_to"], ["id"]
)

# ### end Alembic commands ###

0 comments on commit 82dd276

Please sign in to comment.