mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 08:09:37 +00:00
35 lines
755 B
Python
35 lines
755 B
Python
"""empty message
|
|
|
|
Revision ID: fca98f434287
|
|
Revises: 811e16ed3bf0
|
|
Create Date: 2021-09-25 16:56:21.499233
|
|
|
|
"""
|
|
import sqlalchemy as sa
|
|
import sqlalchemy_utils
|
|
from alembic import op
|
|
|
|
from project import dbtypes
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "fca98f434287"
|
|
down_revision = "811e16ed3bf0"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.add_column(
|
|
"adminunit",
|
|
sa.Column("can_verify_other", sa.Boolean(), server_default="0", nullable=False),
|
|
)
|
|
op.add_column(
|
|
"adminunitrelation",
|
|
sa.Column("verify", sa.Boolean(), server_default="0", nullable=False),
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column("adminunitrelation", "verify")
|
|
op.drop_column("adminunit", "can_verify_other")
|