33 lines
932 B
Python
33 lines
932 B
Python
"""Fixing table relationships
|
|
|
|
Revision ID: 7c67a545533e
|
|
Revises: 40a36c2e0e8d
|
|
Create Date: 2023-01-02 12:56:05.031475
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '7c67a545533e'
|
|
down_revision = '40a36c2e0e8d'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('accounts', sa.Column('followed', sa.Boolean(), nullable=False))
|
|
op.add_column('attachments', sa.Column('followed', sa.Boolean(), nullable=False))
|
|
op.add_column('hashtags', sa.Column('followed', sa.Boolean(), nullable=False))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('hashtags', 'followed')
|
|
op.drop_column('attachments', 'followed')
|
|
op.drop_column('accounts', 'followed')
|
|
# ### end Alembic commands ###
|