
# revision identifiers, used by Alembic.
revision = '8f9ea78776f4'
down_revision = '3b7eee912b41'

from alembic import op
import sqlalchemy as sa


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

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


# revision identifiers, used by Alembic.
revision = '8f9ea78776f4'
down_revision = '3b7eee912b41'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('user', sa.Column('spam_mark_as_read', sa.Boolean(), nullable=False, server_default=sa.sql.expression.false()))

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

Add default to column spam_mark_as_read
Add default to column spam_mark_as_read
  
  # revision identifiers, used by Alembic.
  revision = '8f9ea78776f4'
  down_revision = '3b7eee912b41'
  
  from alembic import op
  import sqlalchemy as sa
  
  
  def upgrade():
-     op.add_column('user', sa.Column('spam_mark_as_read', sa.Boolean(), nullable=False))
+     op.add_column('user', sa.Column('spam_mark_as_read', sa.Boolean(), nullable=False, server_default=sa.sql.expression.false()))
  
  def downgrade():
      op.drop_column('user', 'spam_mark_as_read')
  
Add default to column spam_mark_as_read
## Code Before:

# revision identifiers, used by Alembic.
revision = '8f9ea78776f4'
down_revision = '3b7eee912b41'

from alembic import op
import sqlalchemy as sa


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

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

## Instruction:
Add default to column spam_mark_as_read
## Code After:

# revision identifiers, used by Alembic.
revision = '8f9ea78776f4'
down_revision = '3b7eee912b41'

from alembic import op
import sqlalchemy as sa


def upgrade():
    op.add_column('user', sa.Column('spam_mark_as_read', sa.Boolean(), nullable=False, server_default=sa.sql.expression.false()))

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