new_contents: """add columns to genomic_set_member_history table
  
  Revision ID: d1f67196215e
  Revises: f512f8ca07c2
  Create Date: 2019-05-22 12:00:00.262058
  
  """
  from alembic import op
  import sqlalchemy as sa
  import model.utils
  
  
  from participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus
  from participant_enums import WithdrawalStatus, WithdrawalReason, SuspensionStatus, QuestionnaireDefinitionStatus
  from participant_enums import EnrollmentStatus, Race, SampleStatus, OrganizationType, BiobankOrderStatus
  from participant_enums import OrderShipmentTrackingStatus, OrderShipmentStatus
  from participant_enums import MetricSetType, MetricsKey
  from model.base import add_table_history_table, drop_table_history_table
  from model.code import CodeType
  from model.site_enums import SiteStatus, EnrollingStatus, DigitalSchedulingStatus, ObsoleteStatus
  
  # revision identifiers, used by Alembic.
  revision = 'd1f67196215e'
  down_revision = 'f512f8ca07c2'
  branch_labels = None
  depends_on = None
  
  
  def upgrade(engine_name):
      globals()["upgrade_%s" % engine_name]()
  
  
  def downgrade(engine_name):
      globals()["downgrade_%s" % engine_name]()
  
  
  
  def upgrade_rdr():
      # ### commands auto generated by Alembic - please adjust! ###
      op.execute('ALTER TABLE genomic_set_member_history ADD COLUMN biobank_id varchar(80) AFTER `biobank_order_id`;')
      op.execute('ALTER TABLE genomic_set_member_history ADD COLUMN biobank_order_client_Id varchar(80) AFTER `biobank_id`;')
      op.execute('ALTER TABLE genomic_set_member_history ADD COLUMN package_id varchar(80) AFTER `biobank_order_client_Id`;')
      # ### end Alembic commands ###
  
  
  def downgrade_rdr():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_column('genomic_set_member_history', 'package_id')
      op.drop_column('genomic_set_member_history', 'biobank_order_client_Id')
      op.drop_column('genomic_set_member_history', 'biobank_id')
      # ### end Alembic commands ###
  
  
  def upgrade_metrics():
      # ### commands auto generated by Alembic - please adjust! ###
      pass
      # ### end Alembic commands ###
  
  
  def downgrade_metrics():
      # ### commands auto generated by Alembic - please adjust! ###
      pass
      # ### end Alembic commands ###
  
  
subject: add columns to genomic_set_member_history table (#1080)