
# revision identifiers, used by Alembic.
revision = '87acbbe5887b'
down_revision = 'f2a71c7b93b6'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('user', sa.Column('profile_data', sa.Text(), nullable=False))


def downgrade():
    op.drop_column('user', 'profile_data')


# revision identifiers, used by Alembic.
revision = '87acbbe5887b'
down_revision = 'f2a71c7b93b6'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('user', sa.Column('profile_data', sa.Text(), nullable=False, server_default=u'{}'))


def downgrade():
    op.drop_column('user', 'profile_data')

Set default value for user profile data
Set default value for user profile data

  
  # revision identifiers, used by Alembic.
  revision = '87acbbe5887b'
  down_revision = 'f2a71c7b93b6'
  branch_labels = None
  depends_on = None
  
  from alembic import op
  import sqlalchemy as sa
  
  
  def upgrade():
-     op.add_column('user', sa.Column('profile_data', sa.Text(), nullable=False))
+     op.add_column('user', sa.Column('profile_data', sa.Text(), nullable=False, server_default=u'{}'))
  
  
  def downgrade():
      op.drop_column('user', 'profile_data')
  
Set default value for user profile data
## Code Before:

# revision identifiers, used by Alembic.
revision = '87acbbe5887b'
down_revision = 'f2a71c7b93b6'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('user', sa.Column('profile_data', sa.Text(), nullable=False))


def downgrade():
    op.drop_column('user', 'profile_data')

## Instruction:
Set default value for user profile data
## Code After:

# revision identifiers, used by Alembic.
revision = '87acbbe5887b'
down_revision = 'f2a71c7b93b6'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('user', sa.Column('profile_data', sa.Text(), nullable=False, server_default=u'{}'))


def downgrade():
    op.drop_column('user', 'profile_data')
