old_contents: """add account_pattern
  
  Revision ID: fb8d553a7268
  Revises: 28e56bf6f62c
  Create Date: 2021-04-26 22:16:41.772282
  
  """
  from alembic import op
  import sqlalchemy as sa
  import pycroft
  
  
  # revision identifiers, used by Alembic.
  revision = 'fb8d553a7268'
  down_revision = '0b69e80a9388'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('account_pattern',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('pattern', sa.String(), nullable=False),
      sa.Column('account_id', sa.Integer(), nullable=False),
      sa.ForeignKeyConstraint(['account_id'], ['account.id'], ondelete='CASCADE'),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('account_pattern')
      # ### end Alembic commands ###
  
new_contents: """add account_pattern
  
  Revision ID: fb8d553a7268
  Revises: 28e56bf6f62c
  Create Date: 2021-04-26 22:16:41.772282
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  # revision identifiers, used by Alembic.
  revision = 'fb8d553a7268'
  down_revision = '0b69e80a9388'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('account_pattern',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('pattern', sa.String(), nullable=False),
      sa.Column('account_id', sa.Integer(), nullable=False),
      sa.ForeignKeyConstraint(['account_id'], ['account.id'], ondelete='CASCADE'),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('account_pattern')
      # ### end Alembic commands ###
  
subject: Remove unnecessary pycroft import in migration