new_contents: """dv order history fix
  
  Revision ID: b82e99329bf5
  Revises: a43f72b7c848
  Create Date: 2019-04-22 14:27:02.384999
  
  """
  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 = 'b82e99329bf5'
  down_revision = 'a43f72b7c848'
  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 biobank_dv_order_history CHANGE COLUMN `created` `created` DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6);')
      op.execute(
        'ALTER TABLE biobank_dv_order_history CHANGE COLUMN `modified` `modified` DATETIME(6) NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6);')
      # ### end Alembic commands ###
  
  
  def downgrade_rdr():
      # ### commands auto generated by Alembic - please adjust! ###
      pass
      # ### 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: Fix DV order history table (#1036)