You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
477 B
Python
23 lines
477 B
Python
""" Add user.allow_spoofing
|
|
|
|
Revision ID: 7ac252f2bbbf
|
|
Revises: 8f9ea78776f4
|
|
Create Date: 2022-11-20 08:57:16.879152
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '7ac252f2bbbf'
|
|
down_revision = 'f4f0f89e0047'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
op.add_column('user', sa.Column('allow_spoofing', sa.Boolean(), nullable=False, server_default=sa.sql.expression.false()))
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column('user', 'allow_spoofing')
|