text: """add 1:1 relationship
  
  Revision ID: 7f36d08d4759
  Revises: cddae214969e
  Create Date: 2018-12-19 17:33:44.599833
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '7f36d08d4759'
  down_revision = 'cddae214969e'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.add_column('user', sa.Column('plan_id', sa.Integer(), nullable=True))
      op.create_foreign_key(None, 'user', 'plan', ['plan_id'], ['id'])
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_constraint(None, 'user', type_='foreignkey')
      op.drop_column('user', 'plan_id')
      # ### end Alembic commands ###
  