mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
33 lines
888 B
Python
33 lines
888 B
Python
"""empty message
|
|
|
|
Revision ID: 51c47c7f0bdb
|
|
Revises: 7afc40e11791
|
|
Create Date: 2020-09-29 15:38:44.033998
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
import sqlalchemy_utils
|
|
from project import dbtypes
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '51c47c7f0bdb'
|
|
down_revision = '7afc40e11791'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('featuredevent', sa.Column('admin_unit_id', sa.Integer(), nullable=False))
|
|
op.create_foreign_key(None, 'featuredevent', 'adminunit', ['admin_unit_id'], ['id'])
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_constraint(None, 'featuredevent', type_='foreignkey')
|
|
op.drop_column('featuredevent', 'admin_unit_id')
|
|
# ### end Alembic commands ###
|