haldis/app/migrations/versions/5c8378aa4dff_add_user_associations.py

29 lines
798 B
Python
Raw Normal View History

2022-05-20 21:34:18 +02:00
"""Add user associations
Revision ID: 5c8378aa4dff
Revises: 55013fe95bea
Create Date: 2022-05-20 21:32:47.786340
"""
# revision identifiers, used by Alembic.
revision = '5c8378aa4dff'
down_revision = '55013fe95bea'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('order', sa.Column('association', sa.String(length=120), nullable=False, default=""))
op.add_column('user', sa.Column('associations', sa.String(length=120), nullable=False, default=""))
2022-05-20 21:34:18 +02:00
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('user', 'associations')
op.drop_column('order', 'association')
# ### end Alembic commands ###